5 votes
127 views
in Max Juicebox World by ⚗️ Conjurer (16.9k points)

heres how conditionals work. conditionals trigger when a condition is met. for example, if you made a if statement to trigger when a number is negative, when the number is negative, it will run the code in the statement.

username = input()

password = input()

if username == "maxjuiceboxworld" and password == "Password123":
          print("ACCESS GRANTED")

you type in maxjuiceboxworld, hit enter, then type in Password123.

ACCESS GRANTED

here we have variables equaling inputs, which if they match the specific condition in the if statement, it triggers.

there is double equal signs because one equal sign means now equals, when double equal signs mean equal to. 

1 Answer

0 votes
by ⚡ Energy Weaver (228k points)
I don’t really code besides Scratch but that’s cool to know :D

Categories

Related questions

4 votes
1 answer 135 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.9k points)
3 votes
1 answer 122 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.9k points)
4 votes
1 answer 118 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.9k points)
11 votes
3 answers 396 views
7 votes
3 answers 467 views
asked Apr 28, 2025 in Technology by A fungi 🃏 Illusionist (12.1k points)
8 votes
1 answer 275 views
asked Dec 20, 2024 in Other by anonymous
7 votes
1 answer 269 views
asked Dec 19, 2024 in Other by anonymous
5 votes
4 answers 948 views
7 votes
3 answers 782 views
5 votes
1 answer 800 views
asked Jul 19, 2022 in Computer Club by Basha ✨ Charmer (9.2k points)
6 votes
3 answers 530 views
asked Jul 18, 2022 in Computer Club by Basha ✨ Charmer (9.2k points)
3 votes
2 answers 114 views
6 votes
0 answers 76 views
3 votes
1 answer 132 views
2 votes
1 answer 215 views
5 votes
2 answers 144 views
asked Dec 30, 2025 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.9k points)
17 votes
2 answers 811 views
5 votes
1 answer 321 views
asked May 16, 2023 in Homework Help by anonymous
4 votes
2 answers 264 views
asked Oct 18, 2022 in Homework Help by Vxnfdj:
...