Author Topic: Setting values to variables that are not set  (Read 2554 times)

cmdrmcdonald

  • Guest
Setting values to variables that are not set
« on: November 26, 2016, 05:47:59 AM »
With VoiceAttack 1.6.1.2 if I try to set a text value 'foo' to '{TXT:not appearing in this profile}' then check 'foo' it contains the text 'Not set'.  Is this intended behaviour, as opposed to 'foo' being not set?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Setting values to variables that are not set
« Reply #1 on: November 26, 2016, 09:50:10 AM »
Yes. The token is parsed to text, so when it returns "Not Set", the text variable will contain the parsed text "Not Set".

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Setting values to variables that are not set
« Reply #2 on: November 26, 2016, 09:14:39 PM »
Tokens are used to represent something as text, and that something can be blank.  In order to indicate that a variable is not set (null) from within a token, something has to come back other than a blank so that the creator of the profile will know what is going on quickly and make sure that their variables are set prior to use.