Forum Discussion

AndrewS's avatar
AndrewS
Qrew Trainee
3 years ago

OR operator

Hello,

I have a formula for color coding:

Case([BUDGET LINES CREATED],false,"#000000") & Case([BUDGET UPDATED],false,"#000000")

How can I use OR operator instead of AND ($)

tried | - does not work.

------------------------------
Andrew S
------------------------------

11 Replies

  • AustinK's avatar
    AustinK
    Qrew Commander
    Is that your full color coding formula? If so I don't see the reason for using case here.

    if(
    [BUDGET LINES CREATED] = false or [BUDGET UPDATED] = false,"#000000"
    )

    This should do it I think. Not sure if that needs quotes or not up there but I left it as you had it.

    Edit: Of course I take a little longer and mark beats me to it lol.
    • AndrewS's avatar
      AndrewS
      Qrew Trainee
      it looks like you beat Mark his formula does not work )))

      ------------------------------
      Andrew S
      ------------------------------
      • AustinK's avatar
        AustinK
        Qrew Commander
        I believe the error in the other formula is the uppercase OR, it needs to be lowercase. Something that has frustrated me many times in the past.
  • try this
    IF(
    not [BUDGET LINES CREATED]
    OR
    not [BUDGET UPDATED], "#000000")


    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • AndrewS's avatar
      AndrewS
      Qrew Trainee
      don't work



      ------------------------------
      Andrew S
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Andrew, can you post he error message when you save the formula?  can you tell me what field type the two fields are?

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------