Jump to content
Macro Express Forums

how to group if/and statements?


bboypkj

Recommended Posts

hey guys,

 

i'm trying to create a macro that requires that 3 sets of if conditions be fulfilled to keep going

 

for example:

 

if var n1 < 3

and

if var n2 > 3

 

OR

 

if var n3 < 13

and

if var n4 > 13

 

OR

 

if var n5 < n10

and

if var n6 > 92

 

 

that's an example, but how do i make sure that my sets of if statements are isolated and grouped?

when i use the direct editor, i'm getting the feeling that macro express isn't isolating them how i want, and i can't find a command similar to using parenthesis

Link to comment
Share on other sites

Except for the Else command, there is no grouping. Macro Express will do the Boolean tests in the order they are written using the results of the first test (True or False) to compare with the next test, and so forth. In your example, if the N1 AND N2 test pass then both the N3 AND N4 and N5 AND N6 tests will be ignored.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...