SIMPOL Documentation

Selection Functions

Intrinsic selection functions as a group includes those functions that are used to make a choice from among the arguments and then to return one of them. The list of functions in this group is:

  • .if()

  • .min()

  • .max()

The simplest of these is the .if() function, which evaluates the first argument and then if it is equal to .true it returns the second argument otherwise it returns the third argument. The other two functions: .min() and .max() return either the item with the lowest value or the highest value respectively. For full information regarding the proper syntax and usage of each of these see the "Selection Functions" section of the "Intrinsic Functions" chapter in the "SIMPOL Language Reference".