Variable

A Variable object is used to store data, which can be tested against in Question and Script objects.

The data can be set to a fixed number (one that doesn’t change), or a number that can be adjusted (Writeable).


Type

The Variable value can be set as Float, Integer or User Data.

Float

Decimal numbers. eg 13.253

Integer

A whole number. eg 65

User Data

The value is assigned from any available User Data that’s been added to the nxQuestion object’s User Data tab.

Variable_01.png

This Power setting was creating by selecting Add User Data from the User Data menu. By default, this number doesn’t do anything at all. It’s merely a number stored within the nxQuestion object.

Variable_02.png

With the variable Type set to User Data, the ‘power’ user data setting is now available to select from the Data pulldown.