View Single Post
  #34  
Unread 01-08-2009, 07:35 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by samejima View Post
OK I was trying to do stuff like

Cond= a==10 || a==5
That's basically what I tried to express above (and what should be mentioned earlier in this thread), you can't combine different operations (here == and ||), the parser doesn't pick it up correctly, you need to put them in separate statements that you reference via variables. You can combine similar operations though, so COND = a || b || c || d works.

Quote:
Originally Posted by samejima View Post
with that being said would this be a valid statment


y=(a == 10)
z=(a == 5)
x=(COND ? true : false) COND=y || z

And this?
x=(COND ? true : false) COND=y || z y=(a == 10) z=(a == 5)

trying to keep it all on one line for a change instead of pressing return 1000x
I find it easier to read with linebreaks but both ways work, it's purely cosmetic.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 01-08-2009 at 07:37 AM.
Reply With Quote