First time here? Check out the FAQ!
-1

What is wrong with this code

if YCentury == 23: CenturyCode = 0 if YCentury == 20: CenturyCode = 6 if YCentury == 24: CenturyCode = 6

updated 2020-07-12 12:36:30 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

As pasted, there is a space before the first 'if' and you didn't use markup to make the code appear on separate lines and YCentury is not defined but otherwise it looks OK.

Wingware Support's avatar
4k
Wingware Support
answered 2020-07-13 07:24:08 -0500, updated 2020-07-14 09:36:50 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer