Quantcast
Channel: zoomy dot net » MEL
Viewing all articles
Browse latest Browse all 10

Check for Existence of a Variable in MEL

$
0
0

Error-catching in MEL with the catch command won’t catch a “variable does not exist” error, so use whatIs instead:

if (`whatIs "$test"` == "Unknown") {
print "yes";
} else {
print "no";
}

There ya go.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images