Forum Discussion

MarcusLatham's avatar
MarcusLatham
Community Member
4 years ago

Multiple variables in a statement (IF / and)

I have used this technique many times before and now for some reason I can no longer utilize and conditions that contain more than one variable?

this is what is what I am doing:

I have a scene where I need the user to fill in a form completely before moving on using a specific hotspot. This is how I have always done it.

For some reason, it works fine when i am using only one variable, but as soon as i add multiple it stops working.

 

Variables used:

move_forward  (true/false)  - set to False by default

month_selected (true/false) - set to false by default

name (text) - no default value

phone (text) - no default value   (this will change to what the user types when object loses focus)

Trigger Wizard:

Attached image

 

  • XavierToyos's avatar
    XavierToyos
    Community Member

    Hello,
    I think I have found a solution to your project. Actually the variable "move_forward" prevents it from working correctly, unless the last variable to enter is "name". It works if the trigger variable is the last one to enter (by project logic it is "month_selected"). But it fails again if it is not the last variable entered.
    I have done the STORY without the "move_forward" variable and I think it works as you want.

    Attachment.

    All the best

  • What you need is a trigger like this when name changes, one when phone changes, and one when month_selected changes. They change move-forward when they change if the other two have already changed. That way you can keep your Try Again layer.