@Roy-Mustang
839ee6e6-f3d1-4cb7-adec-8fdbb56769d8-image.png
thanks for helping me, can you provide a screenshot in using http/xml example, i have tried but it doesn't work, thanks
Hi, I got a list checkbox list with 100 urls's I want to do if this URL is checked then do ....
So what I tried is.
{{VAR}} == "https://example.com/"
{{VAR}}.indexOf("https://example.com/")>0
However, If the URL is not checked it also does the code.
How can i loop those things and only do the action for the checked URLs?
Regards
SyraX
@syrax said in IF statement help:
Hi, I got a list checkbox list with 100 urls's I want to do if this URL is checked then do ....
So what I tried is.
{{VAR}} == "https://example.com/"
{{VAR}}.indexOf("https://example.com/")>0However, If the URL is not checked it also does the code.
How can i loop those things and only do the action for the checked URLs?
Regards
SyraX
{{VAR}}.indexOf("https://example.com/") >= 0
or
{{VAR}}.indexOf("https://example.com/") > -1
@Fox said in IF statement help:
{{VAR}}.indexOf("https://example.com/") >= 0
It working like a charm thanks for your quick reaction! This makes my life a lot easier.
So if it exists for checked. It will get the value 0? Or a negative value?
@syrax said in IF statement help:
@Fox said in IF statement help:
{{VAR}}.indexOf("https://example.com/") >= 0
It working like a charm thanks for your quick reaction! This makes my life a lot easier.
So if it exists for checked. It will get the value 0? Or a negative value?
This is a JavaScript method that is easier to find information about on the Internet
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf
