5 Replies Latest reply on Feb 5, 2018 12:46 AM by Wardenburg

    fillcolor boolean discrepancy

    Wardenburg Level 1

      Hey everyone,

       

      Could someone explain the below (console) behavior for me? ( Nb. f1. is a text field that is gray.)

       

      f1.fillColor==color.gray

      false

      f1.fillColor

      G,0.5

      color.gray

      G,0.5

       

      I'd like to use the background color for booleans , but because the top comparison fails I'm at a loss.

       

      For this particular instance I have a workaround but for my overall understanding I'd be happy to know why this works this way