7

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?

KayKoder
  • 75
  • 4

1 Answers1

6

NetLogo's member? primitive will do exactly that:

if member? "word" phrase [ do-something ]
Nicolas Payette
  • 14,847
  • 1
  • 27
  • 37