a shorthand function for either getting the upper or lower case of a string str, based on the numeric option.
str
option
options:
option > 0
option < 0
option = 0
a shorthand function for either getting the upper or lower case of a string
str
, based on the numericoption
.options:
option > 0
=> input string is turned to uppercaseoption < 0
=> input string is turned to lowercaseoption = 0
=> input string is unmodified