Is it possible to count the instances of a for-each boolean statement. for example, say you have patients in a hospital and certain criteria must be met to discharge them. 100(%0) health would equal a discharge, pseudo code would read something like this:
I actually don't have any code to go with this question. It is just something I was wondering if you could do. I know you can count nodes, but I was just curious if you could count the number of times a boolean condition returned true or false.
Thank you, I have looked through this already and could not find the answer, although it won't hurt to view it again. I was wondering if you could do something like this Discharged: <xsl:value-of select="count(patients[boolean_exp = 'true'])"/> and because my brain is now on a tangent, can you wrap the boolean exression in a variable? So Discharged: <xsl:value-of select="count(patients[$boolean_exp = 'true'])"/>
Hi Helmut. I don't have any code to accompany this, it was just a generic question to see if it was possible to count instances of boolean returns. The links have have posted indicate it is, so thank you.