5 votes
103 views
in Max Juicebox World by ⚗️ Conjurer (16.4k 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 (227k points)
I don’t really code besides Scratch but that’s cool to know :D

Categories

Related questions

4 votes
1 answer 118 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.7k points)
3 votes
1 answer 95 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.7k points)
4 votes
1 answer 95 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.7k points)
10 votes
3 answers 366 views
7 votes
3 answers 437 views
asked Apr 28, 2025 in Technology by A fungi 🃏 Illusionist (12.1k points)
8 votes
1 answer 257 views
asked Dec 20, 2024 in Other by anonymous
7 votes
1 answer 256 views
asked Dec 19, 2024 in Other by anonymous
5 votes
4 answers 861 views
7 votes
3 answers 733 views
5 votes
1 answer 743 views
asked Jul 19, 2022 in Computer Club by Basha ✨ Charmer (9.2k points)
6 votes
3 answers 492 views
asked Jul 18, 2022 in Computer Club by Basha ✨ Charmer (9.2k points)
3 votes
2 answers 90 views
6 votes
0 answers 55 views
3 votes
1 answer 108 views
2 votes
1 answer 185 views
5 votes
2 answers 127 views
asked Dec 30, 2025 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.7k points)
17 votes
2 answers 774 views
5 votes
1 answer 259 views
asked May 16, 2023 in Homework Help by anonymous
4 votes
2 answers 243 views
asked Oct 18, 2022 in Homework Help by Vxnfdj:
...