Possible to add 2 commands for fee formula?

  • cork
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 10 months ago #10002 by cork
Hi,

I need to add a second command to the fee formula. For example, 1-10 shirts are €10 each, 11+ are €8 each.

I used [FIELD_VALUE]*10 by itself and it works fine.
If I use [FIELD_VALUE]*10 && [FIELD_VALUE > 10]*8, this does not work.

How would I do this?

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #10005 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Possible to add 2 commands for fee formula?
Hi

Try to use this formular, it should work :
Code:
([FIELD_VALUE] > 10) ? [FIELD_VALUE]*8 : [FIELD_VALUE]*10

Please Log in or Create an account to join the conversation.

  • cork
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 10 months ago #10033 by cork
admin wrote:

Hi

Try to use this formular, it should work :

Code:
([FIELD_VALUE] > 10) ? [FIELD_VALUE]*8 : [FIELD_VALUE]*10


This code just calculates each shirt to be €10 each, with no discount after 11 shirts.

Please Log in or Create an account to join the conversation.

  • cork
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 10 months ago #10042 by cork
admin wrote:

Hi

Try to use this formular, it should work :

Code:
([FIELD_VALUE] > 10) ? [FIELD_VALUE]*8 : [FIELD_VALUE]*10


Do you have another formula that works?

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc