View Single Post
rlane187
Junior Member
 
Join Date: Mar 2015
Posts: 28

Old October 16th, 2017, 10:27 AM
Quote:
Originally Posted by Duggan View Post
For AND
Code:
if (delta > 3) then
  if (delta <=6) then
    ~ do stuff
    endif
  endif
For OR (can result in duplication if doing "do stuff" twice has different effects than running it once)
Code:
if (delta = 3) then
  ~ do stuff
  endif

if (delta =6) then
  ~ do stuff
  endif
Alternately, if you can turn it into a tag check (including a tag value check), things get more flexible.
I would love to use tags for it, but it is calculating how many creation points the user is burning on attributes during creation.

To summarize the takeaway from this, I need to nest any if statements for logical AND or OR?
rlane187 is offline   #6 Reply With Quote