nested if conditions

Tecplot's automation language

Python scripts were supported in the alpha version for Legacy 360 (2013). Python inquiries in 2017 should be directed to the PyTecplot Forum.

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

mirko
Experienced user
Posts: 17
Joined: Tue Mar 11, 2008 5:55 am
Location: Germany
Contact:

nested if conditions

Postby mirko » Tue Nov 08, 2011 5:46 am

I wonder if someone could please tell me the correct syntax for nested if conditions
like:
$!IF ( |ACTUALVAR| < |VARF1| ) || ( |ACTUALVAR| > |VARF5| )
...
$!ELSE
...
$!ENDIF

I didn't find any of those constructions in the scripting guide or else.
Thanks in advance

Mirko
mirko restemeier
www.ist.rwth-aachen.de

Svetlana
Expert
Posts: 93
Joined: Sun Dec 22, 2013 3:08 pm
Location: Australia
Contact:

Re: nested if conditions

Postby Svetlana » Thu Jan 09, 2014 4:18 pm

Compound expressions don't go into an if block directly. Instead, they are assigned to a variable using conditional operator and logical operators. See section 12.2 of the scripting guide.


Return to “Tecplot Macro Language”

Who is online

Users browsing this forum: No registered users and 2 guests