glyph Posted October 18, 2003 Share Posted October 18, 2003 hi, is there any documentation on slightly more complex 'if' expressions? for instance I have this: if($PT%2==0,$TY+((sin($F*4)+1.8)*0.15),$TY) so what I'd like to know is, is there any way I can redo the query part like: if($PT%2==0 AND $PT<80 etc.. or replace AND with OR ...again in other software I was able to do nested if statements -- (also a nice variant of that called 'case' statements which was just a neat way of listing choices out without nesting..) thanks Quote Link to comment Share on other sites More sharing options...
Jason Posted October 18, 2003 Share Posted October 18, 2003 Hi there, the operators are the standard programming operators: OR = || AND = && if( $TX==0 || $TY==0, 1, 0 ) As for nesting, you can put if() statements inside of other if() statements: if( A==B, if( C==D,0,1), 0) Hope this helps, Jason Quote Link to comment Share on other sites More sharing options...
glyph Posted October 23, 2003 Author Share Posted October 23, 2003 thanks again Jason - just what I needed to know rather than going at it randomly! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.