How to do calculation with Boolean parameters and return integer value from function

Steve143
Giga Contributor
encRequesteddinRequestedpinRequested

prime

Inter type

FalseUndefined or FalseUndefined or FalseBoth1
TrueTrueFalseBoth2
TrueFalseTrueBoth3
TrueTrueTrueprime = true3
TrueTrueTrueprime = false2

I am trying to write an internal function to calculate and return 1,2, or 3 based on values of those four fields called (encRequested, dinRequested, pinRequested, and prime). By parameters I have passed those fields' value to the function. I just need help to calculate those Boolean return values and return integer value for Inter type. I have to finish it in script include function and return value will be part of command line. Thanks in advance. 

0 REPLIES 0