Forum Discussion
HubertHubert
3 years agoNew Member
Adding conditional column
Hi, I'm trying to add a column with a condition in it, here's the code:
if(
(Time.Hour([Date and hour]) < 22 and Time.Hour([Date and hour]) > ๐
then "Day"
else "Night")
But everything im getting is an error saying expecting token RightParen, what am I doing wrong? The problem seems to appear with 'then' operator.
if Time.Hour([Date and hour]) < 22 and Time.Hour([Date and hour]) > 8 then "Day" else "Night"
3 Replies
- css207Frequent Visitor
if Time.Hour([Date and hour]) < 22 and Time.Hour([Date and hour]) > 8 then "Day" else "Night"- HubertHubertNew Member
Thanks works perfectly love it
- HubertHubertNew Member
Nope, still having the same problem, the window looks like this also the emote should be number '8'โ