Back
Try:
int myInt = myBoolean ? 1 : 0;
If true = 1 and if false = 0
31k questions
32.8k answers
501 comments
693 users