CatchErrorOrNoSamples()

Format

CatchErrorOrNoSamples(Arg1 ,DefaultValue)

Returns

Returns the value of Arg1, unless an error occurs while evaluating it or it contains no samples, in which case the value of Default is returned instead.

Inputs

Arg1: The argument being checked for errors and lack of samples or data.
Behaviour: Required
Dimension: Error, Collection, SingleValue, Matrix,MultiCollection
Valid data types: Null, Boolean, DateTime, Decimal, Integer, String, Duration, Error

DefaultValue: The value to be returned if an error occurs or the data has no samples. Must be a constant.
Behaviour: Required
Dimension: SingleValue
Valid data types: Null, Boolean, DateTime, Decimal, Integer, String, Duration

How to format data types

Release History

  • CatchErrorOrNoSamples() 4.6.5
    • Changed Arg1 parameter to support MultiCollection values.
  • CatchErrorOrNoSamples() 4.0
    • Initial version

Comments are closed