Python Forum
Trouble with assigning a string value in conditional statement
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with assigning a string value in conditional statement
#2
Remove the second 'val ='. What comes after the else is just assigned to val if the condition is not true.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Trouble with assigning a string value in conditional statement - by ichabod801 - Jun-16-2018, 06:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble converting a string into an int DreDigital 2 1,647 Jan-29-2020, 09:41 PM
Last Post: DreDigital
  format String in SQL statement. Steven 9 6,660 May-29-2017, 08:41 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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