| iMatix home page
| Libero home page | Libero documentation
| << | < | > | >>
Libero Libero
Version 2.32

Syntax Of Expressions

The :set and :declare commands assign the value of an expression to a variable. A couple of examples:

:declare $count = 0
:set $count = $count + 1

Libero handles the expression depending on the type of the variable:

An arithmetic expression can include '+', '-', '*', '/', parentheses. All number are four-byte signed long values, i.e. fall into the range +2,147,483,647 to -2,147,483,648.

Things pretty much work as you would expect, I hope. In practice I always declare variables as int or string and put explicit quotes around strings.


| << | < | > | >>
| Libero Technical Reference | Read-Only Variables | Schema Commands | Syntax Of Expressions | Syntax Of Logical Conditions | Control Variables | Standard :do Conditions | Extra Variables In A :do Loop | General Rules for Code Generation | Generating Module Stubs | Generating COBOL Code | The State Machine Algorithm | Compiled-In Limitations | Quick Reference - Libero Schema Language
iMatix
Copyright © 1996-97 iMatix