Note that all logical and comparison operators return 0 for FALSE and 1 for TRUE. Operands of logical operators are assumed TRUE for all non-zero values, FALSE for zero values.
The available intrinsic functions are shown in Table 3. Note that some functions allow for a variable number of arguments. For technical reasons, the number of arguments for these functions is currently limited to a maximum of 30. Two noteworthy functions of this type are the lookup() and the which() functions. The function lookup( i, v1, v2, v3,...) takes an index i as first argument and returns vi, the i-th of the following values. The function which( v, v1, v2, v3,...) takes a value v as first argument and compares it with the following values vi. It returns the index i of the first match v = vi found, or 0 otherwise.
In addition to operands and operators, an expression may also contain comments enclosed in brackets, e.g. ``[auto network without connectors] isAuto && not(isConnector)''. This is useful to explain the meaning of an expression to those users who are not (yet) Enif experts.
Depending on the context, an expression may allow only a numerical result or also accepts a string result. But even expressions which are limited to numerical results may include string valued subexpressions.
<< 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] ... 下一页 >>






