Hi ! My problem is simple. I have a function that test if a player is in a list and return true or false. But when I input a non-existent list, it just responds "<none>" but I need a false return. What can I do ?
code_language.skript:
function PlayerIsInList(p: player,players: strings) :: boolean:
if {_players::*} is set:
loop {_players::*}:
set {_check::*} to groups 0 of loop-value matched to "^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$"
if {_check::1} is set:
set {_players::%loop-index%} to player from "%loop-value%"
clear {_check::*}
if "%{_players::%loop-index%}%" is "%{_p}%":
return true
stop
return false