I've been trying to use if and else statements in boolean. Neeed help😢 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

I've been trying to use if and else statements in boolean. Neeed help😢

28th Sep 2018, 4:46 PM
alimson daniel
alimson daniel - avatar
8 Answers
+ 5
// Don't use the if else statement with the boolean or else, it is not functioning properly.
28th Sep 2018, 5:00 PM
program
program - avatar
+ 5
To get this, you create the prompt with the vairable and create the dialog to get the value after input.
28th Sep 2018, 5:08 PM
program
program - avatar
+ 4
Your question please
28th Sep 2018, 4:54 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
0
trying to get user input, and fix it in an if and else statem
28th Sep 2018, 4:55 PM
alimson daniel
alimson daniel - avatar
0
statement*
28th Sep 2018, 4:55 PM
alimson daniel
alimson daniel - avatar
0
okay
28th Sep 2018, 5:01 PM
alimson daniel
alimson daniel - avatar
0
so how do I get user input in conditional statements
28th Sep 2018, 5:02 PM
alimson daniel
alimson daniel - avatar
0
use ? as if and : as else like this -> bool?true:false
28th Sep 2018, 7:22 PM
BraveHornet
BraveHornet - avatar