Error

 

 

 

Error

 

Description

Raises a critical error during execution if two string values are equal.

 

Arguments

1.Error - Name of the Macro.

2.Match - A value indicating if the comparison made will be an equality or inequality comparison.  The values Yes, No, True, False, Matched, and Unmatched or the first character of these words is acceptable.

3.Expression 1 - The value to compare and in the event that a match is not made will be returned from the function by default.

4.Expression 2 - The value to compare against.

5.Message - The error message to throw if expression 1 and expression 2 match.

6.Replacement Value - Optional value to return in place of expression 1 if there is no match.

 

Examples

[Error|Match|[Attribute|Test]|X|Attribute Test cannot be X.]

If the value of [Attribute|Test] matches X the error "Attribute Test cannot be X." occurs.

If the value of [Attribute|Test] does not match X the value of [Attribute|Test] is returned.

 

[Error|Match|[Attribute|Test]|X|Attribute Test cannot be X.|Z]

If the value of [Attribute|Test] matches X the error "Attribute Test cannot be X." occurs.

If the value of [Attribute|Test] does not match X the value Z is returned.

 

[Error|Unmatched|[Attribute|Test]|X|Attribute Test can only be X.]

If the value of [Attribute|Test] matches X the value of [Attribute|Test] is returned.

If the value of [Attribute|Test] does not match X the error "Attribute Test can only be X." occurs.

 

[Error|Unmatched|[Attribute|Test]|X|Attribute Test can only be X.|Z]

If the value of [Attribute|Test] matches X the value Z is returned.

If the value of [Attribute|Test] does not match X the error, "Attribute Test can only be X." occurs.

 

Notes

If an error is produced it will cause the job to fail.

 


Copyright © 2024 pasUNITY, Inc.

 

Send comments on this topic.