Farsi / Persian
NetLogo Models Library:
This shows how to use the
run command to give different breeds different definitions of the "same" procedure.
You could accomplish the same thing with code like this:
ifelse breed = dogs [ dogs-speak ] [ ifelse breed = cats [ cats-speak ] [ cows-speak ] ]
but such code is tedious to write and runs slower.
run command is fast when you use it over and over again on the same strings, so using this technique won't hurt the performance of your model.