Forum Discussion
Rob_Dobrzycki_3
Nimbostratus
8 years agosimple 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 ...
JG
Cumulonimbus
8 years agoset nullindex 1
if { $nullindex > -1 } {
log local1. "test"
}
or if you insist on using parenthesis:
set nullindex 1
if { ($nullindex > -1) } {
log local1. "test"
}
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
