Howdy and good afternoon/am,
I am trying to have conditional label set and I keep getting error invalid statement. I am defining cahold and cbhold with no problem but when i want to ocnditionally show the labels and colors, is where I'm getting the errors:
addLabel(yes, if cahold then "CA" then color.dark_green else if cblohd then "CB" then color.dark_red else color.gray);
I am trying to have conditional label set and I keep getting error invalid statement. I am defining cahold and cbhold with no problem but when i want to ocnditionally show the labels and colors, is where I'm getting the errors:
addLabel(yes, if cahold then "CA" then color.dark_green else if cblohd then "CB" then color.dark_red else color.gray);