Forum Discussion

HubertHubert's avatar
HubertHubert
New Member
3 years ago
Solved

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

  • css207's avatar
    css207
    Frequent Visitor
    if Time.Hour([Date and hour]) < 22 and Time.Hour([Date and hour]) > 8
    then "Day"
    else "Night"
  • Nope, still having the same problem, the window looks like this also the emote should be number '8'โ€ƒ