1 2 3 4 5 6 7 8 9 10 11 12 13
//@version=4 // Switch expression result = switch x 1 => "one" 2 => "two" 3 => "three" // Switch with strings color = switch mode 'red' => #FF0000 'green' => #00FF00 'blue' => #0000FF