Thanks @GhostZ issue got fixed after an update. Thanks again
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
-
@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/") >= 0or
{{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