Link to home
Start Free TrialLog in
Avatar of ethar turky
ethar turkyFlag for Saudi Arabia

asked on

IIF in java

hi,
any function like this:
iif( numberOfPrizes % numberOfParticipants == 1);
to return true or false only...
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or if want the boolean value to be returned from a method you can use:

return (numberOfPrizes % numberOfParticipants == 1);