Skip to main content

Default expressions

This section illustrates the use of PSLang expressions by explaining expressions used by default by Bravura Security Fabric .

Each of these expressions use an iif() function, which takes 3 parameters – iif(boolean expression, "true-part", "false-part" )

It evaluates the boolean expression, and when it’s true, it returns the true-part. Otherwise, it returns the false-part.

In PSLang, a variable is prefixed by $. The variables discussed in this chapter represent a string of characters, or an array of strings.

The characters [n] are placed after variable names to index the n th character in a string, or the n th value in an array, starting from 0. This is used with profile attributes, which can have multiple values. The first of an array of values is represented by $ATTRIBUTE[0], the second by $ATTRIBUTE[1], and so on.

All built-in attributes must be expressed as an array. That is – $FIRST_NAME[0] , $OTHER_NAME[0], $LAST_NAME[0].