wmGlob1.dll - Help

MAY Computer

Conditions

Applies to: wmGlob1.dll

The following syntax applies if the ResolveIfThenLine method of the wmGlob1.dll is called to resolve a condition:

IF <expression> THEN <command>[ ELSE <command>]

where <expression>::= ["]<value>["] <comparison operator> ["]<value>["]

Important Note: Before and after the comparison operator there must be a blank/space!!!

Because of the behaviour that 2 double quotation marks ("")are replaced by a single one (") during runtime you have two possibilities checking for an empty value/string:

IF '%APPPATH%' <> '' THEN ...

IF "%APPPATH%" <> """" THEN ...

 

AvailableExpressions

v ::= <Any String Value>; f ::= <Path>\<FileName>; p ::= <Path>; e ::= <FileName>; w ::= <WindowTitle>; t ::= <Time>; d ::= <Date>

Expression

Description

v = v

equal (strings and numeric values)

v ^= v

equal for numeric values and case insensitive comparision for strings

v > v

greater (case sensitive strings and numeric values)

v < v

smaller (case sensitive strings and numeric values)

v >= v

greater or equal (case sensitive strings and numeric values)

v <= v

smaller or equal (case sensitive strings and numeric values)

v <> v

not equal (case sensitive strings and numeric values)

v NOT ^= v not equal for numeric values and case insensitive comparision for strings
v LIKE v

case sensitive pattern matching (strings and numeric values):

      ? any single character
* zero or more characters
# any single digit
[<cl>] character list where <cl> is a character list
of the form x{,x} or x-x where x represents
a single character (case sensitive).
Sample: [A,B,C] or [A-F]
[!<cl>] not one of the characters in characterlist
where <cl> is same as above.
v ^LIKE v case insensitive pattern matching (strings and numeric values) - pattern characters same as above
v NOT LIKE v

case sensitive pattern matching (strings and numeric values) negation - pattern characters same as above

v NOT ^LIKE v case insensitive pattern matching (strings and numeric values) negation - pattern characters same as above
v IN v

search substring in string (case sensitive)

v NOT IN v

substring search negation (case sensitive)

v ^IN v

substring search (case insensitive)

v NOT ^IN v

substring search negation (case insensitive)

EXIST FILE f

results in "true" if file f exists

EXIST DIR p results in "true" if the folder p exists
MISSING FILE f results in "true" if the file f does not exist
MISSING DIR p results in "true" if the folder p does not exist
EXIST ANY f results in "true" if a matching file or folder exists where you can use * and ? as pattern in the filename.
MISSING ANY f results in "true" if a matching file or folder does not exist where you can use * and ? as pattern in the filename.
EXIST WIN w

results in "true" if a window with this text in title can be found

MISSING WIN w

results in "true" if no window with this text in title can be found

EXIST TASK e

results in "true" if a process is found in task list matching the exe name

MISSING TASK e

results in "true" if no process can be found in task list matching the exe name

t PASSED SINCE d

results in "true" if the time t passed since the date and/or time d (different formats are recognized "/" for english, "-" for iso, "." for german date format)

t NOT PASSED SINCE d

results in "true" if the time t not passed since the date and/or time d (different formats are recognized "/" for english, "-" for iso, "." for german date format)

d EARLIER THAN d

results in "true" if date 1 before/earlier than date 2

d NOT EARLIER THAN d

results in "true" if date 2 same or after/later than date 1

d LATER THAN d

results in "true" if date 1 after/later than date 2

d NOT LATER THAN d

results in "true" if date 1 same or before/earlier than date 2

[EXCL[USIVE]] READ|WRITE ACCESS TO f results in "true" if the desired access to the file f is granted (taking into account rights and access from other applications). For "EXCLUSIVE WRITE ACCESS TO" the short form "EXCLUSIVE ACCESS TO" can be used.
NOT [EXCL[USIVE]] READ|WRITE ACCESS TO f results in "true" if the desired access to the file f is granted (taking into account rights and access from other applications). For "NOT EXCLUSIVE WRITE ACCESS TO" the short form "NOT EXCLUSIVE ACCESS TO" can be used.