-
Notifications
You must be signed in to change notification settings - Fork 1
LessThan
jdubs edited this page Oct 21, 2016
·
1 revision
Returns the result of a number comparison.
SpecName (multiple) The name of the variable for operation result assignment
NumberB (multiple) The variable containing the second value in the operation
SpecName (constant) The name of the variable for operation result assignment
ErrorMessage (multiple | optional) The error message to return when any error occurs.
Tests the two number inputs to determine of NumberA is less than NumberB. Sets the SpecName variable to "true" or "false".
public static void LessThan(object NumberA, object NumberB, string SpecName, object ErrorMessage)
{
Break();
try
{
Variable(SpecName).Value = N(NumberA) < N(NumberB) ? "true" : "false";
}
catch (Exception ex)
{
throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
}
}