Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Integer incrementer = 0; String evenOROdd = ''; for(integer i=0;i<50;i++){ evenOROdd = ((Math.MOD(incrementer,2) == 0 ) ? 'Even' : 'ODD'); System.debug(i+' = ' +evenOROdd ); incrementer++; } Output: 0 = Even 1 = ODD 2 = Even 3 = ODD 4 = Even . . .
Try this Link
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008yLvIAI
Thanks
Shiva.
All Answers
Try this Link
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008yLvIAI
Thanks
Shiva.
You can try this code:
Thanks,
Sivasankar