title: Imperative JS to Reactive JS - "if statement" sparkAR
body: <p>I need some help regarding Reactive JS and  "if statement"
   I do not know how to implement a simple code in Reactive JS
  something like thisin Spark AR:</p>
  
  <pre><code>if( boolvalue=true)
   {
   vidTex.url = "https://yourvideo";
   }
   else 
   {
    vidTex.url = "";
   }
  </code></pre>
  
  <p>I found a piece of code done in for Spark Reactive JS like this:</p>
  
  <pre><code>   vidTex.url = Reactive.val(""); // Stop
     vidTex.url = Reactive.val("https://yourvideo"); // Play
  </code></pre>
  
  <p>But I do not know how to implement the if bool true?</p>
  
  <p>Help</p>