function pricedetect(list: objects, check: object) :: boolean:
loop {_list::*}:
set {_forgelist::*} to "%loop-value%" split at " "
set {_ingredlist::*} to "%{_check}%" split at " "
if "%{_ingredlist::1}%" parsed as number >= "%{_forgelist::1}%" parsed as number:
set {_ingredlist::2} to "%{_ingredlist::2}% %{_ingredlist::3}% %{_ingredlist::4}% %{_ingredlist::5}% %{_ingredlist::6}%"
set {_forgelist::2} to "%{_forgelist::2}% %{_forgelist::3}% %{_forgelist::4}% %{_forgelist::5}% %{_forgelist::6}%"
delete {_forgelist::3}, {_forgelist::4}, {_forgelist::5}, and {_forgelist::6}
delete {_ingredlist::3}, {_ingredlist::4}, {_ingredlist::5}, and {_ingredlist::6}
if {_ingredlist::2} = {_forgelist::2}:
return true
else:
broadcast "incorrect item"
return false