if then statements
I use podio as a project management software of construction. I have been trying to input a repair estimating sheet I use and simplify it so that if 1 item is selected it then multiples out that cost ONLY IF that item was selected. For example I have a category of a few items, roof shingles, rollover roof, etc. I want a calculation below that will know to calc out each one of those at a specific price but only if they are selected. Is there a way to do this? Thanks!

  • Hi Mike, yes, there is a way. If the category field is single choice: var cat = @your category field; cat == "roof shingles" ? 100 : cat == "rollover roof" ? 200 : "" If the field is multi choice: var cat = @your category field; cat .indexOf("roof shingles") > -1 ? 100 : cat .indexOf("rollover roof") > -1 ? 200 : "" 100 and 200 are placeholders for your prices. Read it as: IF condition 1 is true THEN (?) use value 100 ELSE IF (:) condition 2 is true THEN use value 200 ELSE show nothing (for the case no category is selected; if you want to show 0 if no category is selected enter 0 instead of ""). In the settings of the calculation field you can define a unit (e.g. $). Rainer rg@delos-consulting.com
This question is closed.