By: Andras
Date: 2008-09-04
Time: 22:51
|
Why not working "IF"
Hi,
I don't understand why not working this code:
[block.getQuantity;if [block.getQuantity]==0;then '"<img src=images/cart_delete.png>"';if [block.getQuantity]-=4;then '"<img src=images/cart_error.png>"';else ''"<img src=images/cart_add.png>"']
|
Thanks
|
By: Skrol29
Date: 2008-09-04
Time: 22:55
|
Re: Why not working "IF"
Hi,
It could run faster and better if you replace [block.getQuantity] with [val] inside the "if" expressions.
I've also notices that
else ''"<img src=images/cart_add.png>"' |
should be written
else '"<img src=images/cart_add.png>"' |
|
|
Posting in progress.
Please wait...
|