It looks like you're new here. If you want to get involved, click one of these buttons!
<<set $time={ day=0, hour=7 }>> <<set $misc={ isMallOpen: function() { return ($time.hour lte 18); }, haveSchool: function() { return ($time.day % 7 gt 0) && ($time.day % 7 lt 6) && ($time.hour lt 12); }, canSleep: function() { return ($time.hour gt 15); }, test: function() { return false; } }>>\
<<if $misc.canSleep>>[[Go to sleep]]<<endif>>
Comments
I set up a series of widgets (using sugarcube 2) eg.
and called like this
You should have done something like the following: Note the parenthesis at the end of the method name.