manual:chapter6:stack:cmd_ifte

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:chapter6:stack:cmd_ifte [2019/11/03 07:19]
jojo1973 created
manual:chapter6:stack:cmd_ifte [2019/11/17 14:16] (current)
jojo1973
Line 9: Line 9:
 ---- ----
 ^  __Input Stack__  ^^^  ^  __Output Stack__  ^ ^  __Input Stack__  ^^^  ^  __Output Stack__  ^
-|  **1**  |  **O<sub>true</sub>**  |  **O<sub>false</sub>**  |  **→**  |  **O<sub>true</sub>** +|  **1**  |  **O<sub>true</sub>**  |  **O<sub>false</sub>**  |  **→**  |  **[O<sub>true</sub>]<sub>XEQ</sub>** 
-|  **0**  |  **O<sub>true</sub>**  |  **O<sub>false</sub>**  |  **→**  |  **O<sub>false</sub>**  |+|  **0**  |  **O<sub>true</sub>**  |  **O<sub>false</sub>**  |  **→**  |  **[O<sub>false</sub>]<sub>XEQ</sub>**  |
 |  //Level 3 / Argument 1//  |  //Level 2 / Argument 2//  |  //Level 1 / Argument 3//  |  //→//  |  //Level 1//  |  |  //Level 3 / Argument 1//  |  //Level 2 / Argument 2//  |  //Level 1 / Argument 3//  |  //→//  |  //Level 1//  | 
  
Line 22: Line 22:
 <callout color="orangered" icon="fa fa-comment" title="Description"> <callout color="orangered" icon="fa fa-comment" title="Description">
 ---- ----
-The ''IFTE'' function tests the object on level 3 of the stack: if it is [[manual:chapter6:operators:cmd_ovr_istrue|true]] then it ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''%%'%%tes the object on level 2, otherwise it ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''%%'%%tes the object on level 1.+The ''IFTE'' function tests the object on level 3 of the stack: if the test returns ''1'' then it ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''tes the object on level 2, otherwise it ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''tes the object on level 1.
  
-The function ''IFTE'' can be used in symbolic expressions to define piecewise functions.+''IFTE'' can be used in symbolic expressions to define piecewise functions.
 </callout> </callout>
  
  • manual/chapter6/stack/cmd_ifte.1572794342.txt.gz
  • Last modified: 2019/11/03 07:19
  • by jojo1973