Logical

assignif

Assigns a result if a conditional expression is true

Collection assignif(Collection cond, Collection if)

  • cond: is a conditional expression evaluated for each item
  • if: is the result returned if the condition is true

empty

determines if a cell in a collection is empty

Collection empty(Collection x)

  • x: is the collection

exists

determines if a cell in a collection exists or is empty

Collection exists(Collection x)

  • x: is the collection

filter

Returns a result depending on a conditional expression.

Collection filter(Collection cond, Collection if, Collection else)

  • cond: is a conditional expression evaluated for each item
  • if: is the result returned if the condition is true
  • else: is the value returned if the condition is false

ifexists

Returns the argument. All empty cells of the argument are replaced by a given value.

Collection ifexists(Collection x, Collection alt)

  • x: the argument
  • alt: the value replacing the first argument's empty cells

inrange

Returns the first argument if it is inside a given range otherwise produces an error.

Collection inrange(Collection value, Collection min, Collection max)

  • value: is the argument to be tested
  • min: is the lower bound of the valid range
  • max: is the upper bound of the valid range

inside

returns true for all values that lie inside a given range.

Object inside(Collection val, Collection l, Collection r, Collection excl=nothing)

  • val: is the value to be tested.
  • l: is the lower limit of the range.
  • r: is the upper limit of the range.
  • excl: defines if the lower or upper limit values belong to the interval or not. Possible values are: 0= [l;r] 1= ]l;r] 2= [l;r[ 3= ]l;r[

isnothing

returns true, if argument x does not exist (NIL pointer).

boolean isnothing(Object x)

  • x: is the variable to be tested.

maskerror

Filters values with error states from a given argument. Optionally, values with error states (e.g. #inf) can be replaced by an alternative value.

Object maskerror(Collection val, Collection alt=nothing)

  • val: Is the source component or single value
  • alt: Is the optional alternative value

oneof

returns true for all values that are contained in a given set of values.

Object oneof(Collection val, Collection set)

  • val: is the value to be tested.
  • set: is a collection of valid values. This can be a reference to a tensor on a worksheet or an array, e.g. array(1,2,5,7)

outside

returns true for all values that lie outside a given range.

Object outside(Collection val, Collection l, Collection r, Collection excl=nothing)

  • val: is the value to be tested.
  • l: is the lower limit of the range.
  • r: is the upper limit of the range.
  • excl: defines if the lower or upper limit values belong to the interval or not. Possible values are: 0= [l;r] 1= ]l;r] 2= [l;r[ 3= ]l;r[

Feedback

Did you find what you needed?

If you have any further questions or suggestions to improve this page, please let us know:

=