EDN Admin
Well-known member
Hi all,
I have an <xsl:if> expression which tests whether all of the four variables are equal to 0. However, this is not working for me, as when run the code and, for example, two out of the four variables has a value, then I want the IF statement to be satisfied
and the logic within it to be executed. My <xsl:if> statement is below...
<div style="color:Black;background-color:White; <pre>
<xsl:if test="not(number($VAR_net_sales) = 0)
and not(number($VAR_change_in_inventories_of_work_in_progress) = 0)
and not(number($VAR_work_performed_by_its_own_use_and_capitalized) = 0)
and not(number($VAR_other_operating_incomes) = 0)
... LOGIC ...
<span style="color:Blue; </<span style="color:#A31515; xsl<span style="color:Blue; :<span style="color:#A31515; if<span style="color:Blue; >
[/code]
so, if all four variables are equal to 0, then I do not want the logic in the <xsl:if> to be executed.
Does anyone know where I am going wrong with this?
thanks in advance.
<hr class="sig Tryst
View the full article
I have an <xsl:if> expression which tests whether all of the four variables are equal to 0. However, this is not working for me, as when run the code and, for example, two out of the four variables has a value, then I want the IF statement to be satisfied
and the logic within it to be executed. My <xsl:if> statement is below...
<div style="color:Black;background-color:White; <pre>
<xsl:if test="not(number($VAR_net_sales) = 0)
and not(number($VAR_change_in_inventories_of_work_in_progress) = 0)
and not(number($VAR_work_performed_by_its_own_use_and_capitalized) = 0)
and not(number($VAR_other_operating_incomes) = 0)
... LOGIC ...
<span style="color:Blue; </<span style="color:#A31515; xsl<span style="color:Blue; :<span style="color:#A31515; if<span style="color:Blue; >
[/code]
so, if all four variables are equal to 0, then I do not want the logic in the <xsl:if> to be executed.
Does anyone know where I am going wrong with this?
thanks in advance.
<hr class="sig Tryst
View the full article