Newb calculation help

Comments

1 comment

  • Rainer Grabowski

    Hi RIck,
    "equal" in a comparison needs 2 ==;

    var result = 0;
    if (@Type of Transportation == "Gas") {
    result = @Miles * .52;
    } else {
    result = @Total Cost of Item 1 + @Total Cost of Item 2 + @Total Cost of Item 3 + @Total Cost of Item 4 + @Total Cost of Item 5 + @Total Cost of Item 6;
    }
    result    

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk