contact  |  about  |  sitemap

matching multiple criteria in if statement
Last Post 17 Mar 2009 10:03 PM by vapoureyes. 2 Replies.
Sort:
PrevPrev NextNext
Author Messages
vapoureyes

--
15 Mar 2009 02:34 AM
Hello.

How is it possible to create a conditional if then statement that meet multiple matching criteria.

e.g:

If [variable1] AND [variable2] AND [[variable3] = TRUE
then
DO SOME ACTION
end if.

Unless I'm wrong, Djuggler doesn't utilise the AND (&&) operator. Is there a way to do this?

thanks
Support Team

--
16 Mar 2009 08:39 AM
Currently there is no option to use a AND in an IF statement.

You can however nest IF conditions to get the same result. In that case you would typically use a variable as a flag like:

Set variable DoAction to Yes
IF [variable1 Not equals TRUE] then set variable DoAction to No
IF [variable2 Not equals TRUE] then set variable DoAction to No
IF [variable3 Not equals TRUE] then set variable DoAction to No
If [DoAction equals Yes] ... DO SOME ACTION...

We also will put your suggestion on our development list.
Thanks.
Tijn
vapoureyes

--
17 Mar 2009 10:03 PM
Thanks for the reply. I'll give your workaround a try. Though I can see adding an AND operator is going to make scripting much less complicated and possibly confusing.


Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.