在我的代码中,我需要写一个if else块 -
when the variable `currentValue` is holding only spaces -> certain code
但我不知道如何编写这个条件,因为currentValue
可以是任何大小的字符串。它可以包含" "
," "
等。
如果我编写currentValue!=" "
,它只会检查单个空格。