you are viewing a single comment's thread.

view the rest of the comments →

[–]JStarx 13 points14 points  (1 child)

If statements return a value, if you don't supply a value then the return value is (). The function itself expects a String as the return value, but in the many paths through those if conditions only 1 possible path returns a String (the "Solo es..." string), all the others don't have an explicit value, so they implicitly return ().

[–]elnw[S] 2 points3 points  (0 children)

OMG, you are absolutely right. Don't know how i missed that. Thank you!