How to implement if then else

Hi,

I set up a variable say LoggedInUser(default value to test).  And I am accepting user input for that variable(in after action event).  After that i am checking if LoggedInUser = "Lakshmi", then in another action script i am displaying some text.  But though i did not gave Lakshmi it is displaying text.

Here is action sequence i am executing

Main

 Run action list Sample1

Action List Sample1

Define variable(here i am defining LoggedInUser variable and setting it to test(default value). and on AfterAction script i wrote the following code

LoggedInUser= InputBox("Enter your name")
MsgBox ("in procedure")
MsgBox LoggedInUser

and i am also checking if LoggedInUser = Lakshmi

running another action script MessageBox

Action List MessageBox

Here i am defining one more variable user.  and on BeforeAction script i am displaying text.

But it is displaying the text even though i did not gave Lakshmi.   I observed one thing.  After running all scripts the status of if then is skipped instead of completed.

What i have to do now?

Hi Lakshmi,

I’m not entirely sure of the problem, but can I suggest that you use the Interactive actions to prompt the user for information rather than using script (have a look at either “InputBox” or “Prompt for Variables” actions).

Also, we strongly recommend that you define all your variables via the Edit Variables dialog (under tools menu), rather that defining them within your build.

If you’re still unable to get this working, please send us your project at support at finalbuilder dot com and we’ll take a look.

Hi,

Mine is a sample test program like HelloWorld. But i am not able make this working. I will send my project support@finalbuilder.com.

Regards