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.
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.