well..i was able to get the node ID..
but still there's a problem:((
i made global var. called right & left and assigned them a value as initialization.. but when i change their values in the switch case..they are not shown..
I think you are having a namespace problem. Remove the name= in the switch, and use $: to address the left and right variables. You can also read the documentation page about namespaces http://ez.no/ez_publish/documentation/development/libraries/ez_template/basics/namespaces.
ok..i solved the namespace prob..:D but..do u know how would i call a variable using namespaces inside the new name space itself..!
4ex.this code..
{let nodeChosen=fetch(content,node,hash(node_id,$cn)) name='let'}
{switch name='chosen' match=$:nodeChosen.node_id }
{case match=222}
{let right=1124 left=1125 name='case'}{/let}
{/case}
...
{let col=fetch(content,tree, hash(..,***** need to put the $chosen:case:right*****variable here,),...)}
.
.
.
{/let}
{/switch}
{/let} i wrote it as mentioned but didn't work!!