beautypg.com

Condition macros, Condition macros -40 – Clear-Com Logic-Maestro User Manual

Page 106

background image

Clear-Com Communication Systems

Eclipse Logic Maestro Instruction Manual

2 - 4 0

CONDITION MACROS

These macros are accessed by expanding the ‘Clearcom’ > ‘ScriptLibrary’ >
‘Condition’ entry in the Available Modules menu.

Macro

Description

CompareTo (Object) [int]

Returns an integer value from the comparison of two
objects e.g.
int = .CompareTo();

Equals (Object) [bool]

Tests the equivalence of two objects and returns True or
False. e.g:
bool = .equals<(object2)>;

GetHashCode () [int]

Returns the hash code of an object previously created
by a control as an integer. e.g:
int = .GetHashCode();

GetType () [Type]

Returns the type of an object previously created by a
control macro. e.g.
Type = .GetType();

GetTypeCode () [TypeCode]

Returns the type code of an object previously created by
a control macro. e.g.
TypeCode = .GetTypeCode();

ToString () [string]

Returns the string value of an object previously created
by a control macro. e.g.
string = .ToString();

ToString (IFormatProvider)
[string]

Returns the string value of an object previously created
by a control macro formatted by a format specifier e.g.
string = .ToString();

ToString (string) [string]

Returns the string value of an object previously created
by a control macro formatted by a format provded as a
parameter e.g.
string = .ToString();

ToString (string, IFormatPro-
vider) [string]

Returns the string value of an object previously created
by a control macro formatted by a format provded as two
parameters e.g.
string = .ToString(,mat>);

AND [Condition]

Specifies a condition to tested between two objects and
returns a boolean TRUE or False e.g.
,Condition.AND,;

OR [Condition]

Specifies a condition to tested between two objects and
returns a boolean TRUE or FALSE eg.
,Condition.OR,;