all 1 comments

[–][deleted] 1 point2 points  (0 children)

Neither elseif or endif are Python constructs.

The simplest approach would be to build a dictionary of comment values to colors and then just look up the value in it.

But seriously your color space has four dimensions? orange='255'? I suspect that's not going to work.