BoolInt

MacroModule
genre Fields
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition helpers.def
see also BoolString, Switch, Negation
keywords boolean, integer, field, translation

Purpose

The module BoolInt translates between a Boolean and an integer value.

Details

Note

This module will suppress field notifications if the field value does not change.

Windows

Default Panel

../../../Modules/Macros/Helpers/mhelp/Images/Screenshots/BoolInt._default.png

Parameter Fields

Field Index

Boolean value: Bool
Default Bool: Enum
Int Value: Integer
Inverse Boolean value: Bool
Off Value: Integer
On Value: Integer

Visible Fields

Boolean value

name: boolValue, type: Bool, default: FALSE

Sets and shows the Boolean value.

Inverse Boolean value

name: invBoolValue, type: Bool, default: TRUE

Sets and shows the inverse of the Boolean value.

Int Value

name: intValue, type: Integer, default: 0

Shows and sets the integer value in association to the Boolean value.

Off Value

name: offValue, type: Integer, default: 0

Sets the integer value to be associated with the Boolean value being false.

On Value

name: onValue, type: Integer, default: 1

Sets the integer value to be associated with the Boolean value being true.

Default Bool

name: defaultBool, type: Enum, default: Unchanged

Defines which Boolean value should be set if the Int Value is set to something else than the on or off value.

Values:

Title Name Deprecated Name
Unchanged Unchanged UNCHANGED
Off Off OFF
On On ON