Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something similar to contains in netlogo

Im trying to do an if statement with an condition that if the string contains a certain word like bellow if(phrase) = "word")
Any ideas?

like image 604
KayKoder Avatar asked May 10 '15 17:05

KayKoder


1 Answers

NetLogo's member? primitive will do exactly that:

if member? "word" phrase [ do-something ]
like image 167
Nicolas Payette Avatar answered Oct 24 '22 02:10

Nicolas Payette