I am trying to check the value of a variable in a while loop
set resultReturn 0
while {expr $resultReturn == 0} {
# Apply the stream configurations.
set resultReturn [stc::apply]
}
I am getting the following error:
syntax error in expression "expr $resultReturn == 0": variable references require preceding $
What should be the correct way to check the variable in an infinite loop until it changes value from 0?
resultReturnand make sure you are getting a valid numeric value back.