Chapter 3. Parser features

Table of Contents

Types
Expressions
Variables
Built in Globals
Passing arguments in Kommander

Types

Each value is of one of three types: string, integer or double. Type conversion is automatic and chooses most appropriate type (for example, if you add double to integer, result will be double). If one of the values is string, result will be string too.

Places you can get into trouble here are getting a numerical value from a widget and trying to perform a mathematical function on it. Since Kommander uses + to concatonate two strings of text it can treat LineEdit1.text + 2 as 22 instead of 2. See the conversion funtions in String functions to avoid problems.