Author Topic: Problem with Variables  (Read 2349 times)

pscammp

  • Guest
Problem with Variables
« on: June 19, 2018, 06:14:42 AM »
Hello all,

As a response to a 'custom command' I am creating a variable as follows:

Using 'Set a small Integer Value' and using 'A Value'  - Name: RandNum  Value set: 1

Then I use a line next to write the variable and its given value to the log as follows:

Using 'Write a Value to the event log' - RandNum Initialized = {INT: RandNum} 

When the variable is on the log the value is shown as follows:

RandNum Initialized = Not Set

Have I done something wrong  ???

Many Thanks
Paul

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Problem with Variables
« Reply #1 on: June 19, 2018, 08:05:51 AM »
The "{INT:}" token will retrieve an integer variable, if you want to retrieve a small integer variable you need to use the "{SMALL:}" token.

pscammp

  • Guest
Re: Problem with Variables
« Reply #2 on: June 26, 2018, 08:52:23 AM »
Thanks Pfeil,

Was still showing 'Not Set' using 'small' but I found why - I had a space between the 'small:' and my
variable name, as soon as I removed the space it all works fine.

Thanks again
Paul