Jump to content
Sign in to follow this  
Zaid

Boolean Calculation Help

Recommended Posts

Hi Everyone! I Have no idea how to perfom this script.

I have a Radio field for customers who are 'Reseller', with radio buttons "Yes" and "No". I want another field called: 'Sales Tax Rate'

to calculate itself to add a sales tax value of .0825 for non-resellers and 0 for resellers

Basically i want the field 'Sales Tax Rate' to:

if [ ( Reseller) = "Yes" ]

return a 0 to field 'Sales Tax'

else

return 0.0825 to field 'Sales Tax'

Sorry if my coding is cheap im just a beginner.

Share this post


Link to post
Share on other sites

The "smarts" should be in the Sales Tax field, not the Sales Tax Rate field.

Sales Tax =

if (Reseller = "Yes" , 0, Sales Tax Rate * SubTotal)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.