Current time: 12-15-2017, 02:17 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting: if/else/endif not working
06-20-2017, 09:53 AM
Post: #1
Scripting: if/else/endif not working
Hey guys,
I'm trying to script with if/else/endif but it doesn't seem to work.
This is the script that I used:

if cached 0
navigate google.com
else
navigate yahoo.com
endif

When I try to run the script above, it never goes to google.com and will always evaluate the else condition.
https://www.webpagetest.org/result/170619_RF_1WKG/

I also tried to follow the documentation and tried to follow the format with the example script given for if/else/endif

https://sites.google.com/a/webpagetest.o...else-endif

if run 1
if cached 0
navigate google.com
endif
else
navigate yahoo.com
endif

But I get the same issue. Everytime I run the script above, It evaluates the else condition.

https://www.webpagetest.org/result/170619_8S_1WS6/

Am I doing something wrong or is this a bug with if/else/endif?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Scripting: if/else/endif not working - jupiterw - 06-20-2017 09:53 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)