• iantresman

    (@iantresman)


    Can I test a variable? The following is supposed to display the number 1-4, and whether it is greater than 2 or not?

    Trial 1

    [pass list=1~4]
      [set x]{ITEM}[/set]
      <li>[get x]  [if {x}>2 ]True[else]False[/if]
    [/pass]

    Trial 2

    [pass list=1~4]
      [set x]{ITEM}[/set]
      <li>{ITEM}  [if {ITEM}>2 ]True[else]False[/if]
    [/pass]
    • This topic was modified 4 years ago by iantresman.
  • The topic ‘Testing a variable?’ is closed to new replies.