是否有类似于 netlogo 中包含的内容

Kay*_*der 6 string if-statement netlogo

我试图做一个 if 语句,条件是如果字符串包含某个单词,如 bellow if(phrase) = "word") 有
什么想法吗?

Nic*_*tte 5

NetLogo 的member?原语将做到这一点:

if member? "word" phrase [ do-something ]
Run Code Online (Sandbox Code Playgroud)