forked from solstice/solstice
24 lines
505 B
Markdown
24 lines
505 B
Markdown
# string_IsAlpha
|
|
Returns true if the given `string` is only numbers.
|
|
|
|
## Arguments
|
|
- str (string): the string to check.
|
|
|
|
## Returns
|
|
isAlpha (bool): returns `true` if `string` is only numbers, otherwise `false`.
|
|
|
|
## Example
|
|
### Ground
|
|
```python
|
|
call !string_IsAlpha "65535" &isAlpha
|
|
println $isAlpha # true
|
|
|
|
call !string_IsAlpha "$!@/_ffff" &isAlpha
|
|
println $isAlpha # false
|
|
|
|
call !string_IsAlpha "1234" &isAlpha
|
|
println $isAlpha # true
|
|
|
|
call !string_IsAlpha "abcd123" &isAlpha
|
|
println $isAlpha # false
|
|
``` |