if/else trinary boolean operatorThis page is for the current JSim version 2.0. Click here for the earlier JSim 1.6 version.
This document describes the syntax of the if - else boolean operator. (MML).
The if - else boolean operator is used only with equations that specify exact numerical relationships between variables. Arbitrary nesting of if - else operators is allowed.
if - else statements can have one of the following forms:
expr2; expr3; var, var2, var3; var = if (expr1) expr2; var2 = if (expr1) expr2 else expr3; var3 = if (expr1) expr2 else (if (expr4) expr5 else expr3);
where exprX are algebraic expression of variables, with expr1 and expr4 being of the boolean type. See Algebraic Expression Syntax for further information.
(Java plugin required) Comments or Questions?
[This page was last modified 14Sep15, 12:37 pm.]
Model development and archiving support at physiome.org provided by the following grants: NIH/NIBIB BE08407 Software Integration, JSim and SBW 6/1/09-5/31/13; NIH/NHLBI T15 HL88516-01 Modeling for Heart, Lung and Blood: From Cell to Organ, 4/1/07-3/31/11; NSF BES-0506477 Adaptive Multi-Scale Model Simulation, 8/15/05-7/31/08; NIH/NHLBI R01 HL073598 Core 3: 3D Imaging and Computer Modeling of the Respiratory Tract, 9/1/04-8/31/09; as well as prior support from NIH/NCRR P41 RR01243 Simulation Resource in Circulatory Mass Transport and Exchange, 12/1/1980-11/30/01 and NIH/NIBIB R01 EB001973 JSim: A Simulation Analysis Platform, 3/1/02-2/28/07.