title: How to decrease value of a variable in smarty?
body: <p>I'm having one varable named <code>$test_que_order</code> in my smarty template. It has assigned an integer value from PHP file. Now during further manipulation I'm passing the value of this varable in an URL. While passing the value I'm deresing it by one. Actually it's expected to decerease the value by one but in real it's not happening. I'm not getting why this is happening? Can anyone help me in this regard? Any help would be highly appreciated. For your reference I'm putting my smarty template code as below code as below. Please let me know wheteher I'm doing something wrong or the issue is something different else. Thanks in advance.</p>
  
  <pre><code>&lt;input id="previous" class="c-btn" type="button" name="previous" value="Previous" onclick="javascript:window.location.href='{$control_url}modules/tests/manual_test_questions.php?op=previous&amp;test_id={$test_id}&amp;test_no_questions={$question_count}&amp;test_que_order={$test_que_order - 1}'" {if $test_que_order == 1} disabled="disabled" {/if}/&gt;
  </code></pre>
  
  <p>If you need any further information I can provide you the same.</p>