function(result)
{
var lParsedResult = result.d;
var userTyp = "test"; //getting this value from some other source
$("#accountList").setTemplate($("#accountListTemplate").html());
$("#accountList").processTemplate(lParsedResult);
}
<div id="accountList">
<script type="text/html" id="accountListTemplate" >
{#foreach $T as account}
<div {#if userTyp == "test"} style="display: inline" {#else} style="display: none" {#/if}>
<p>othere info</p>
</div>
{#/for}
</div>
I want to hide a block if the user type = "test". appreciate your help
Thanks, Mathew.