Quantcast
Channel: Ivanti User Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 15294

If Statement ignored in Calculation

$
0
0

The customer has a request form that allows users to request a number of line items.  One of the requirement is for a total attribute to display the setup and service fee costs based on the line items that the user selects via a serious of checkboxes.

 

The calculation below has been used to faciliate the total, however the total is updated regardless if the line item checkbox is selected or not.  (see screenshot)  The calculation does not fail when tested in object designer but seems to ignore the line: if Request._WHOUPVH == 'True':Value

 

import System

static def GetAttributeValue(Request):

       Value = Request._WHOUPVHSETUP  + Request._WHOUPVHSERVICEFEE

if Request._WHOUPVH == 'True':Value

       return Value

 

Any pointers, greatly appreciated


Viewing all articles
Browse latest Browse all 15294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>