Skip to content

GreaterThan

jdubs edited this page Oct 21, 2016 · 1 revision

Table of Contents

Overview

Returns the result of a number comparison.

Parameters

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.

Synopsis

Tests the two number inputs to determine of NumberA is greater than NumberB. Sets the SpecName variable to "true" or "false".

Source Code

public static void GreaterThan(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);
	}
}

Referenced Methods

Clone this wiki locally