15 lines
259 B
Text
15 lines
259 B
Text
|
|
func is_cool(x: number|string) boolean {
|
|
if x == "cool" {
|
|
return true
|
|
} else if x == 69 {
|
|
return true
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
write(str(is_cool("not cool")))
|
|
write(str(is_cool("cool")))
|
|
write(str(is_cool(0)))
|
|
write(str(is_cool(69)))
|