sysweekday_s

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

sysweekday_s

#1 Post by obod0002c » 17 Dec 2022, 13:42

Hi,
could one please help with the syntax for %sysweekday_s%, can't get it to work. Tried lower case, as "string", the one below, ..

Code: Select all

On Clock#Time=All,07:00 do
  If %sysweekday_s%=Sat
    //
  Else
    TaskValueSet 5,1,[tempIs#tube]+0.2
  Endif
%sysweekday% is working as intended.

The not-operation would then be <>, !=, =!, not available, ..?

TD-er
Core team member
Posts: 8728
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: sysweekday_s

#2 Post by TD-er » 17 Dec 2022, 14:49

You cannot compare with strings.
Strings are currently only to be used for writing on a display, use it in logentry, or use it in string-like stuff like URL (SendToHTTP) or messages (Publish to MQTT)
You can use substring to pull out some numerical parts of a string.
Only strings which can be interpreted as a numerical, can be used.

Any other form of a string cannot be used to compare it with some other string.
Not even on a character level.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 18 guests