I’ve only ever seen “==” being used inside an if statement. So how does “==” work in this context?
a = 5;
b = (a == 18 % 13);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If
bis abool, you can assign the result of an expression to it. In this case, if the conditiona == 18 % 13holds,bwill becometrue, otherwisefalse.Basically,
and
depending on the type of
b.