Thursday 22 January 2004 4:29:22 am - 4 replies
Eirik Alfstad Johansen
Monday 02 February 2004 7:32:58 am
Hi,
The code is probably never going to the section-else block because the is_set function always return true. Is language_name an XML field?
Sincerely,
Eirik Johansen
Sincerely, Eirik Alfstad Johansen http://www.netmaking.no/
Mahesh Arvind
Saturday 07 February 2004 3:30:17 am
Hi Eirik,
Thank you for the reply. I am using a text line here. Any idea what could be the problem
Thanks & Regards Mahesh
Monday 09 February 2004 12:43:03 am
Hmmm.
You might want to try the following instead:
{switch match = $dispname.data_map.language_name.data_text} {case match=''} {$dispname.data_map.default_name.data_text} {/case} {case} {$dispname.data_map.language_name.data_text} {/case}{/switch}
Monday 09 February 2004 3:24:42 am
Eirik,
Thanks for your reply :) I had it working by finding the length of language_name. If it' zero then I displayed default_name.
Thanks & Regards
Mahesh
You must be logged in to post messages in this topic!