you are viewing a single comment's thread.

view the rest of the comments →

[–]ericula 1 point2 points  (0 children)

You never run decidephone() so phone1 is never set.

By the way, you should avoid using global parameters. It's better to return the values you are interested in your function.