Which checks True/false type property 'isFirst' and if it is checked then shows '1st rank' text. But it is not showing even when it is checked. So what is wrong in this? also, no error is coming.
You shouldn't need to convert a True/False property to string to evaluate it (and if you do I think they evaluate as "0" and "1"). Rather, treat them as bools. Also, as your nodes are of type Dynamic there is no need to use the long-winded GetProperty method. I think you should just be able to do this:
True/false propert access
hello
I have following code in razor...
Which checks True/false type property 'isFirst' and if it is checked then shows '1st rank' text. But it is not showing even when it is checked. So what is wrong in this? also, no error is coming.
You shouldn't need to convert a True/False property to string to evaluate it (and if you do I think they evaluate as "0" and "1"). Rather, treat them as bools. Also, as your nodes are of type Dynamic there is no need to use the long-winded GetProperty method. I think you should just be able to do this:
thank you
is working on a reply...