In a script I'm working on I want to check if a variable exists and, if not, prompt the user for a value, like this:
if (!$VAREXISTS(oobmgt_mask)) then
set var oobmgt_mask $READ(Mask:)
But the $READ statement is executed regardless of whether the variable exists or not, but if the variable exists, the value I enter does not get saved to the variable.
I've tested the if statement, and it correctly detects if the variable exists or not.
Is this a bug or am I doing something wrong?
Edit: Perhaps I should mention that I'm running XOS 22.214.171.124 on a Summit X350-48t.
Daniel (from Daniel_Warhammar)