How to do calculation with Boolean parameters and return integer value from function
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2024 06:14 PM
encRequested | dinRequested | pinRequested | prime | Inter type |
False | Undefined or False | Undefined or False | Both | 1 |
True | True | False | Both | 2 |
True | False | True | Both | 3 |
True | True | True | prime = true | 3 |
True | True | True | prime = false | 2 |
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