Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If/Else Statement Help!
#2
if friend Checks whether "friend" is True or not. In if statements, a non-empty string evaluets to True (conversely, empty string evaluates to False). That is why your if condition is always True.

Instead you probably want:
if call == friend
Reply


Messages In This Thread
If/Else Statement Help! - by Dizzy215 - Apr-27-2018, 06:10 PM
RE: If/Else Statement Help! - by j.crater - Apr-27-2018, 06:40 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020