Skip to content

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).


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

Decimal numbers. eg 13.253

A whole number. eg 65

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.

The Variable can be written to (changed).

If this is enabled, the data for the Variable is stored per particle.

The name of the Variable object; this should be unique within the Question, to avoid errors.

The value to set the Variable to, by default (when defined).

Only available when using the User Data Type.

Use the pull down to select from the available User Data created within the nxQuestion object’s User Data settings. **


Copyright © 2026 INSYDIUM LTD. All Rights Reserved.