Parameters in IF statements

(imported topic written by Steve91)

Hi,

Can parameters be used in IF statements?

I’ve set a parameter in my action script for the i.p. adress but when I query the parameter with an IF statement it fails.

I’ve tried various different syntax but no joy.

Is this possible to do and if so can someone provide an example syntax?

Cheers

Steve

(imported comment written by jessewk)

Steve,

Would you post your script and an explaination for what you are trying to do? You should be able to set the parameter once and then use it anywhere in the action script. If you can post what you’ve tried so far we should be able to find you a solution.

-Jesse

(imported comment written by Steve91)

Jesse,

Thanks for the reply, re-reading my question I can see I wasn’t very clear.

I’ve resolved the problem now, I was basically just using the incorrect syntax.

Correct syntax below:

parameter “ipSub” = “{subnet addresses whose (it as string != “0.0.0.0”) of ip interfaces whose (loopback of it = false) of network}”

IF {parameter “ipSub” >=“10.7.0.0” AND parameter “ipSub” <=“10.8.0.0”}

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Test

" “Success”=“123”

ELSE

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Test

" “Fail”=“123”

ENDIF

Cheers

Steve