New Lock State Setting

(imported topic written by jpeppers91)

When I try to create a new setting for Lock state, i get a bunch of percent signs in the setting.

setting “__LockState”=“setting __LockState %3d %7bif %28%28first 2 of following text of position 17 of %28now as string%29 as integer%29 %3c 20 and %28first 2 of following text of position 17 of %28now as string%29 as integer%29 %3e 7%29 then %22true%22 else %22false%22%7d” on “Fri, 16 Jan 2009 20:21:21 +0000” for client

Here is the setting I’m deploying…

setting __LockState = {if ((first 2 of following text of position 17 of (now as string) as integer) < 20 and (first 2 of following text of position 17 of (now as string) as integer) > 7) then “true” else “false”}

(imported comment written by BenKus)

The percent signs are the percent-encoded string that you typed in… You can drop it in QnA and you will see…

Are you using the “Edit Computer Settings” dialog? If so, the name of the setting should be “__Lockstate” and the value should be:

{if ((first 2 of following text of position 17 of (now as string) as integer) < 20 and (first 2 of following text of position 17 of (now as string) as integer) > 7) then “true” else “false”}

I think you are pasting in:

setting __LockState = {if ((first 2 of following text of position 17 of (now as string) as integer) < 20 and (first 2 of following text of position 17 of (now as string) as integer) > 7) then “true” else “false”}

Which will simply give you the string back, which isn’t what you want…

Ben

(imported comment written by jpeppers91)

Thanks Ben