Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Join Date
    Dec 2004
    Location
    Omaha, Nebraska
    Posts
    9

    Conditional Script for Multiple Variables in File Properties

    I see posting on how to define a single variable with one screen of radio buttons...but how do I define multiple variables in the script conditions text box in the File Properties?

    I have created 2 Radio button screens, one to ask which language (French or English) which I am capturing in %Language% and the other screen to capture which version of PowerPoint they are running (2000 or 2002,2003,2007)

    [My PowerPoint Addin is in 2 versions, one for Powerpoint 2000 and one for Powerpoint 2002,2003 or 2007, hence I am leaving it up to user to select which PowerPoint version they have]

    on LanguageScreen1 I defined this on Next action after placing 2 radio buttons...
    Code:
    if String.ToNumber(SessionVar.Expand("%Language%")) ==
    	CTRL_RADIO_BUTTON_01 then
    		English = true;
    		French = false;
    else
    		English = false;
    		French = true;
    end
    and in the Script conditions textbox defined
    Code:
    French
    or

    Code:
    English
    and it works fine.

    I cant figure out how to have the second condition added in the textbox... is it with an AND and parenthesis? I need some examples please..

    I tried the following and it doesnt work

    Code:
    French AND 2000
    Code:
    (French) AND (2000 = TRUE)
    Code:
    (French) AND (2002 = TRUE) OR (2003 = TRUE) OR (2007 = TRUE)
    I tried doing it with just 2 radio buttons and also tried with 4 radio buttons (each version of Powerpoint on a separate button)

    Some examples would be nice...please..

    If someone has an alternative way of doing it, I am open to it.

    thank you in advance...

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    I'm confused by your question; you talk about screen conditions (there are none in suf7/8) and file properties....

    Can you post a sample project wtih what you've tried so we can look at what you're doing?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Dec 2004
    Location
    Omaha, Nebraska
    Posts
    9
    Here is a sample project
    in screens, you have 2 radio button screens that capture data...

    then in conditions you will see that I tried various ways to selectivly install.

    the possible install options are
    1. English + Powerpoint 2000
    2. English + Powerpoint 2002 or 2003 or 2007
    3. French + Powerpoint 2000
    4. French + Powerpoint 2002 or 2003 or 2007

    and then some common files, which is easy.

    hope you follow now...

    thanks
    Attached Files

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    So you are dealing with conditional FILES not screens...
    I looked at one file; it's wrong:

    Code:
    French AND OfficeChoice = 2000
    should be

    Code:
    French AND OfficeChoice == 2000


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Dec 2004
    Location
    Omaha, Nebraska
    Posts
    9
    then how to do multiple conditions in that one text box? Should it be like:

    Code:
    French AND OfficeChoice == 2002 AND OfficeChoice == 2003 AND OfficeChoice == 2007

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Ishana View Post
    then how to do multiple conditions in that one text box? Should it be like:

    Code:
    French AND OfficeChoice == 2002 AND OfficeChoice == 2003 AND OfficeChoice == 2007
    OfficeChoice can never equal 2002 AND 2003.

    it's one or the other.

    Perhaps you mean:

    Code:
    French AND (OfficeChoice == 2002 or OfficeChoice == 2003 or OfficeChoice == 2007)


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  7. #7
    Join Date
    Dec 2004
    Location
    Omaha, Nebraska
    Posts
    9
    Yes, I really did mean an OR not an AND.

    Let me try this and will let you know...

  8. #8
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Ishana View Post
    Yes, I really did mean an OR not an AND.

    Let me try this and will let you know...
    Just remember to use the parenthesis ....


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  9. #9
    Join Date
    Dec 2004
    Location
    Omaha, Nebraska
    Posts
    9
    Still getting error...
    Attached Images
    Attached Files

  10. #10
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    it's and not AND
    it's or not OR
    be sure to use == not =


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  11. #11
    Join Date
    Dec 2004
    Location
    Omaha, Nebraska
    Posts
    9

    SOLVED: Conditional Script for Multiple Variables in File Properties

    That worked! it was the Upper Case "AND" that was causing the problem.

    From my experience, Boolean operators are defined in UPPER CASE...why this different?

    thank you for your help...

    worked out perfectly!

  12. #12
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Ishana View Post
    That worked! it was the Upper Case "AND" that was causing the problem.

    From my experience, Boolean operators are defined in UPPER CASE...why this different?

    thank you for your help...

    worked out perfectly!
    Because that's how the designers of the LUA scripting language decided it should be.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. Hundreds of Variables - How can I edit the .APM File?
    By CJM in forum AutoPlay Media Studio 4.0
    Replies: 9
    Last Post: 04-30-2003, 12:44 PM
  2. Utility to create AMS Script to set Variables to ""
    By Worm in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 02-05-2003, 12:54 PM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts