title: Convert block of code PineScript to thinkscript
body: <p>I want to convert this line of code from pinescript to thinkscript ( Thinkorswim )
  How can I write this? I'm having problems with multiple if statements</p>
  
  <pre><code>isAboveEma01 = line_01 &gt; line_01[1] and line_01 &gt; line_50 ? blue : line_01 &gt; line_01[1] and line_01 &lt; line_50 ? #cc00cc : line_01 &lt; line_01[1] and line_01 &gt; line_50 ? #0388FF : line_01 &lt; line_01[1] and line_01 &lt; line_50 ? #BD003A : na
  </code></pre>
  
  <p>I try this, but doesn't work: </p>
  
  <pre><code>line_01.AssignValueColor( 
  if (line_01 &gt;= line_01[1] and line_01 &gt; line_50) then {
  line_01.Color("PositiveUp") ;
  } else if (line_01 &gt;= line_01[1] and line_01 &lt; line_50) then {
  line_01.Color("PositiveDown");
  } else if line_01 &lt; line_01[1] and line_01 &gt; line_50 then {
  line_01.Color("NegativeUp");
  }) else line_01.Color("NegativeDown");
  );
  </code></pre>