I suggest you ...

Implementation of OR

Locale currently uses the logical operator AND when making conditions and the NOT operator has already been suggested here, so I thought I would throw in OR as well. It has been suggested in the comments section of the "Not on Conditions" suggestion but I'm starting this so that we can check on the status of it officially.

As far as I'm concerned, this would make keeping my battery charged a lot easier. I could set it up so that if my battery is low or I'm at home it reminds me to charge it.

15 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    FennemFennem shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    ScreenrageScreenrage shared a merged idea: OR Condition  ·   ·  Show description
    completed  ·  CarterAdminCarter (Admin, two forty four a.m.) responded  · 

    Within a situation, multiple conditions of different types are treated as AND.

    Within a situation, multiple conditions of the same type are implicitly treated as OR. To add multiple conditions of the same type, long-press on the Add Condition button.

    For more complex behaviors, such as to notify to charge your phone when you are at home OR the battery is low, multiple situations allow you to achieve this functionality.

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • jedijunkjedijunk commented  ·   ·  Flag as inappropriate

        Ok, I posted this as a new suggestion but it got marked as a duplicate. I think its different because it avoids making the user explicitly specify a logical operator. Here it is:

        Several of the already-posted requests (like multiple locations) could be solved at once with a generic "or" behavior in how Locale processes conditions. Leave the assumed "AND" between different types of conditions in a situation. Just let us put in more than one of the same condition type and have Locale consider the Situation valid if at least one of each TYPE of condition is met. In other words, an assumed "OR" between multiples of the same condition type.

        EXAMPLE: I want Locale to turn on my wifi if I'm at home or work and I'm not supposed to be sleeping. I input two location conditions ("Home" and "Work") and a time condition ("7AM to 11PM"). The situation will then activate if I'm at home OR work AND the time condition is met. If I'd put in two time conditions (because I sleep different hours on my days off), the situation would activate if I was at home OR work AND the current time met either time condition. Seems simple enough?

      • jedijunkjedijunk commented  ·   ·  Flag as inappropriate

        I just posted another request on how to implement the OR operator... basically keep the current "AND" behavior in place between conditions of different types, but add the ability to set up more than one condition OF THE SAME TYPE for a given situation (i.e. multiple locations, multiple time conditions, etc). When you did put in multiples of the same type the automatic operator between them would be "OR" . Read my request for details and an example, but it would work really well and not require presenting the user with some kind of AND/OR choice every time they set up conditions for a situation (which I'm guessing the developer made a conscious decision to avoid so Locale stayed simple).

      • VaulculVaulcul commented  ·   ·  Flag as inappropriate

        This has been shot down before... but I think what we're asking for is explicit control over these logic functions, as it stands right now. There are no incorporated user controls for logic within locale.

      Knowledge Base and Helpdesk