Misc. functions

 

Top  Previous  Next

Function name:

Usage:

@AllMatch

@AllMatch(Value...) Takes any number of parameters.  Returns true if they all match the first parameter.  Otherwise, it returns false

@AllTrue

@AllTrue(Expression...) Takes any number of conditional expressions.  Returns true if all the expressions are true.  Otherwise it returns false.

@AnyMatch

@AnyMatch(Value...) Takes any number of parameters.  Returns true if any of the values match the first parameter.  Otherwise, it returns false.

@AnyTrue

@AnyTrue(Expression...) Takes any number of conditional expressions.  Returns true if any of the expressions are true.  Otherwise, it returns false.

@DataCount

@DataCount ( any ... ) Takes any number of any kind of parameter and returns the number of parameters that have data (ie not null).

@GetProfileNum

@GetProfileNum (FileName, SectionName, Keyword) Returns a number from .INI styled file, it will return 'entry not found' if FileName, SectionName or Keyword not found.

@GetProfileStr

@GetProfileStr (FileName, SectionName, Keyword) Returns string from .INI styled file, it will return 'entry not found' if FileName, SectionName or Keyword not found.

@If

@If( Condition, Value1, Value2 ) If the Condition is true, this function returns Value1, otherwise it returns Value2.  This function can be nested as well:  @If( Condition1, Value1, @If( Condition2, Value2, Value3 ))

@NoMatch

@NoMatch( Value...) Takes any number of parameters.  Returns true if no values match the first parameter.  Otherwise, it returns false.

@NotNul

@NotNul (Value…) Takes any number of parameters > 1.  Returns breakline if all parameters are Not NULL.

@NotZeroCount

@NotZeroCount (num…) Takes a list of numbers and returns the count of how many are not equal to zero.

@SetMatch

@SetMatch( Value, [...], Compare, [...]) Takes an even number of values.  Splits the list into two parts.  Checks to see if there is one and only one match for each value in the list.

(1,2,1,2)=true

(1,2,2,1)=true

(1,1,2,1)=false

(1,1,1,1)=true

(1,2,3,1,1,1)=false

(1,2,3,3,1,2)=true