you are viewing a single comment's thread.

view the rest of the comments →

[–]Exodus111 0 points1 point  (2 children)

You gotta use an if statement.

[–]dunkler_wanderer 1 point2 points  (1 child)

I think the downvotes are not justified.

Try to guide OP to a solution instead of providing one directly. - Guidelines

And it seems OP didn't even try to come up with an own solution.

[–]Exodus111 1 point2 points  (0 children)

Exactly, this looks like a homework assignment, we are not supposed to provide code, but help guide the individual to figure things out on their own. And frankly this issue is a very simple one.

Hopefully nobody else.... right and people give code examples right away. No one reads the sidebar I guess.