Forum Discussion
Rob_Dobrzycki_3
Nimbostratus
Jun 11, 2018simple if statement issue
Hi,
I am trying to use simple comparison:
set nullindex 1
if{($nullindex>-1)}{
log local1. "test"
}
This what I see in a log:
invalid command name "if{(1>-1)}{" while executing ...
Stanislas_Piro2
Cumulonimbus
Jun 12, 2018The issue is it tries to evaluate command
if{(1>-1)}{ instead of if because there is no space after if
And there is also a missing space after the closing curly bracket!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
