jdubs edited this page Oct 21, 2016 · 1 revision

Table of Contents


Returns the comparison result of the two supplied values.


SpecName (constant) The name of the variable for comparison result assignment. Values are: true, false.

CompareA (multiple) Comparison operator.

CompareB (multiple) Comparison operator.

ErrorMessage (multiple | optional) The error message to return when any error occurs.


This method performs a simple comparison of the values assigned to the two supplied parameters. The return value is a string representation of a boolean (true or false). You could use this method as a rule evaluation. For example: If SpecName Is "true" Result Is image.jpg.

Source Code

public static void Compare(string SpecName, object CompareA, object CompareB, object ErrorMessage)
		Variable(SpecName).Value = CompareA.Equals(CompareB).ToString();
	catch (Exception ex)
		throw new Four51ActionsException(ex.Message, (string)ErrorMessage);

Referenced Methods

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.