LitDev Extension API

GW LD3DView LDArray LDBits LDBlueTooth
LDCall LDChart LDClient LDClipboard LDColours
LDCommPort LDController LDControls LDCursors LDDataBase
LDDateTime LDDebug LDDialogs LDDictionary LDEffect
LDEmail LDEncryption LDEvents LDFastArray LDFastShapes
LDFigures LDFile LDFinances LDFocus LDftp
LDGeography LDGraph LDGraphicsWindow LDHashTable LDHID
LDIcon LDImage LDInline LDIOWarrior LDList
LDLogic LDMath LDMathX LDMatrix LDMusic
LDNetwork LDPhysics LDProcess LDQueue LDRegex
LDResources LDScrollBars LDSearch LDServer LDSettings
LDShapes LDShell LDSort LDSound LDSpeech
LDStatistics LDStopwatch LDText LDTextWindow LDTimer
LDTranslate LDUnits LDUtilities LDVector LDWaveForm
LDWebCam LDWindows LDxml LDZip TW

LDLogic
Logic operations.
To evaluate an expression for use with these options, use LDMath.Evaluate3.
Example:
input = 3.1
result = LDLogic.Switch(LDMath.Evaluate3(input+"<5"),"OK","New input required")


And_ CaseSensitive EQ
GE GT LE
LT NE Not
Or_ Switch XOr

And_(value1,value2)
The And operator. The trailing underscore is to keep SB parser happy not using reserved keyword AND.
And_("True","True") = "True"
And_("False","False") = "False"
And_("True","False") = "False"
And_("False","True") = "False"

value1 The first value ("True" or "False").
value2 The second value ("True" or "False").
returns "True" or "False".

CaseSensitive
Set if string comparisons are case sensitive ("True", default) or not ("False").

EQ(value1,value2)
The equality operator.
Checks if value1 is equal to value2.
It also works for strings, where a lexical comparison is made.

value1 The first value.
value2 The second value.
returns "True" or "False".

GE(value1,value2)
The greater than or equal operator.
Checks if value1 is greater than or equal to value2.
It also works for strings, where a lexical comparison is made.

value1 The first value.
value2 The second value.
returns "True" or "False".

GT(value1,value2)
The greater than operator.
Checks if value1 is greater than value2.
It also works for strings, where a lexical comparison is made.

value1 The first value.
value2 The second value.
returns "True" or "False".

LE(value1,value2)
The less than or equal operator.
Checks if value1 is less than or equal to value2.
It also works for strings, where a lexical comparison is made.

value1 The first value.
value2 The second value.
returns "True" or "False".

LT(value1,value2)
The less than operator.
Checks if value1 is less than value2.
It also works for strings, where a lexical comparison is made.

value1 The first value.
value2 The second value.
returns "True" or "False".

NE(value1,value2)
The inequality operator.
Checks if value1 is not equal to value2.
It also works for strings, where a lexical comparison is made.

value1 The first value.
value2 The second value.
returns "True" or "False".

Not(value)
The Not operator.
Not("True") = "False"
Not("False") = "True"

value The value to operate on ("True" or "False").
returns "True" or "False".

Or_(value1,value2)
The Or operator. The trailing underscore is to keep SB parser happy not using reserved keyword OR.
Or_("True","True") = "True"
Or_("False","False") = "False"
Or_("True","False") = "True"
Or_("False","True") = "True"

value1 The first value ("True" or "False").
value2 The second value ("True" or "False").
returns "True" or "False".

Switch(condition,value1,value2)
A sorthand conditional statement.
condition A condition or variable that evaluates to "True" or "False".
value1 The value to return if condition is "True".
value2 The value to return if condition is "False".
returns value1 or value2.

XOr(value1,value2)
The XOr (exclusive or) operator.
XOr("True","True") = "False"
XOr("False","False") = "False"
XOr("True","False") = "True"
XOr("False","True") = "True"

value1 The first value ("True" or "False").
value2 The second value ("True" or "False").
returns "True" or "False".