Hi everybody,
i don't understand what happen....
i have a snippet that count the child of a resource [!countChild!]. The output of [!countChild!] is 1, but...
[+phx:if=`[!countChild!]`:is=`1`:then=`count child is 1 - write[!countChild!]` : or:is=`2`:then=`count child is 2 - write [!countChild!]` : or:is=`3`:then=`count child is 3 - write [!countChild!]`:else=``+]
I call the PHx in page with 1 children and my output is
count child is 3 - write 1 
????
How is it possible?
[ed. note: fabryshock last edited this post 15 years ago.]
"Destiny is not a matter of chance, it's a matter of choice"
-
☆ A M B ☆
- 24,524 Posts
Indeed, an Evo "count child" snippet would be simple enough to just add the conditional code for the output to be whatever you want.