CODING SHIP (String flag) Boolean This function returns true if the given flag is set, or false if the flag is not set (or is not a valid flag), or a string starting with #-1 if there was an error.