@Fox
d79e653c-983c-4f27-8c5c-d0eadc4b30e4-image.png
Thank you, my brother, your actions are really extraordinary and able to solve my problem according to my expectations, once again thank you, my brother.
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
