Author Topic: Verify multiple variables equals 0  (Read 2050 times)

Sloboda

  • Jr. Member
  • **
  • Posts: 74
  • VoiceCommander Creator
    • A.M.I.S. X Plane
Verify multiple variables equals 0
« on: April 12, 2017, 01:14:10 PM »
Hello,

Is it possible to make a compare value1&value2&value3 equals 0 ?

Thanks

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4780
  • RTFM
Re: Verify multiple variables equals 0
« Reply #1 on: April 12, 2017, 01:19:44 PM »
In the current release(v1.6.2), you can do this using the "{EXP:}" token, using the "Text" tab:
Code: [Select]
Start Loop While : [{EXP:{SMALL:value1} = 0 AND {SMALL:value2} = 0 AND {SMALL:value3} = 0}] Equals '1'
Substitute the appropriate variable type token instead of "{SMALL:}" where applicable.

In the current beta(v1.6.4.1), you also have the option of using the new and convenient "Condition Builder" feature:
Code: [Select]
Start Loop While : ([value1] Equals 0 AND [value2] Equals 0 AND [value3] Equals 0)
« Last Edit: April 12, 2017, 01:30:45 PM by Pfeil »

Sloboda

  • Jr. Member
  • **
  • Posts: 74
  • VoiceCommander Creator
    • A.M.I.S. X Plane
Re: Verify multiple variables equals 0
« Reply #2 on: April 12, 2017, 03:04:31 PM »
Genius !
Absolutly amazing... I have download the beta and use the new tool.
Thank you very much