Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
13
Task/Empty-string/MiniScript/empty-string.mini
Normal file
13
Task/Empty-string/MiniScript/empty-string.mini
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
string.isEmpty = function
|
||||
return self == ""
|
||||
end function
|
||||
|
||||
number.toBoolStr = function
|
||||
if self == 0 then return "false"
|
||||
return "true"
|
||||
end function
|
||||
|
||||
s = ""
|
||||
t = "0"
|
||||
print "'s' is empty? " + s.isEmpty.toBoolStr
|
||||
print "'t' is empty? " + t.isEmpty.toBoolStr
|
||||
Loading…
Add table
Add a link
Reference in a new issue