CfgScript Expressions


| Syntax Elements | Source | Preprocessor | Types | Expressions | Backtick Expressions | Statements | Class | Logging |

Expression results into a value

Content of this chapter:



:  LiteralExpression
|  AssignmentExpression
|  OperatorExpression
|  IdentifierExpression
| NewExpression
|  InstanceOfExpression
|  DelegateExpression
|  LambdaExpression

Sub chapter pages:

Literals are hard coded values of basic or component types.

Assignment bind values to a variable

An Operator is a special function connected to a Object or class.

instanceof check if an object is type of a class

Delegates are a powerfull mechanism to implement function level dispatching, callbacks and signal/slot mechanism.

The lambda expression is a easy way to define methods in place. The result of a lambda expression is a Delegate object.