Message Boards Message Boards

0
|
8055 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Comparison between subquery

Posted 10 years ago

I'm trying to build an home-automation system using Wolfram Alpha, but i have some difficulty to understand how to build query that compare different subquery.

If i ask 3<4 i have the boolean result True.

It's possible (and what is a correct syntax) to have the same boolean result True or False to query like

current time is between sunrise and sunset?

...

2 < 4 < 5 return True, ok.

time return a date.

sunset return a date.

sunrise return a date.

Why sunrise < time < sunset doesn't return a simple True ?

Another example i'm looking: current day of week is Sunday?

Thanks for any feedback or a link to some article that explain multiple subquery syntax.

{3 < 4, 4 < 1}

enter image description here

POSTED BY: Simon Cadrin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract