Share » Forums » Setup & design » Substract: A=B-C... or: how does the...

Substract: A=B-C... or: how does the sub-operator work?

Substract: A=B-C... or: how does the sub-operator work?

Friday 24 October 2003 11:58:23 am - 1 reply

Author Message

Vivienne van Velzen

Monday 27 October 2003 12:57:39 am

Hi Marco,

I tried the following, and it worked for me.

{let level=count($node.path_array)
     span1=min($level|inc(), 10)
     span2=sub(10,$span1)
}
{$level}<br>
{$span1}<br>
{$span2}
{/let}

I didn't have any trouble using 'level' as variable name. Maybe it's a namespace issue? Hope this helps,

Vivienne

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu