HI,
Is it possible to get a totalt output SUM by taking filed_1 + filed_2?
Is it possible to get a totalt output SUM by taking filed_1 + filed_2?
<cms:set my_value='16' />
<cms:show my_value /><br> <!-- output: 16 -->
<cms:add my_value my_value /> <!-- output: 32 -->
<cms:show my_value /><br> <!-- output: 16 -->
<cms:incr my_value my_value />
<cms:show my_value /><br> <!-- output: 32 -->
trendoman wrote: Is it possible then to read documentation? You are clearly abusing support, in my humble opinion.
---
You can use this tag
http://docs.couchcms.com/tags-reference/incr.html OR
http://docs.couchcms.com/tags-reference/add.html
Illustration of the difference:
- Code: Select all
<cms:set my_value='16' /> <cms:show my_value /><br> <!-- output: 16 --> <cms:add my_value my_value /> <!-- output: 32 --> <cms:show my_value /><br> <!-- output: 16 --> <cms:incr my_value my_value /> <cms:show my_value /><br> <!-- output: 32 -->
trendoman wrote: Is it possible then to read documentation? You are clearly abusing support, in my humble opinion.
---
Tomarnst wrote:
I for one (when I can't get something done) have to spend hours searching this forum, reading the documentation, fiddling with some own made shitty code, and so on … . before posting the question if someone can help me out. Until now I always got a working code snippet and or an perfect explanation where I wen't wrong in an amazingly fast time. This has been sometimes a lifesaver for me.
Spamming posts will result in a difficult to search forum with a lot of insignificant info, also will the change that someone get a quality answer in a short amount of time reduce significantly.
So please @kimheggen consider this for me , I need this forum also really bad (sometimes) .