playMaker

Author Topic: Way to compare multiple strings?  (Read 649 times)

Starside

  • Playmaker Newbie
  • *
  • Posts: 8
Way to compare multiple strings?
« on: March 27, 2021, 06:15:39 PM »
Hello everyone. Looking for a way to compare a bunch of one strings at one time.

For example I have a voice recognition plugin. I want to detect if the player says one of the 5 options and send an event based on that.

Weak Interactive

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 33
Re: Way to compare multiple strings?
« Reply #1 on: March 27, 2021, 07:21:57 PM »
Hey,

I'm pretty sure you're looking for the "String Switch" action. It allows you to send an event by comparing however many strings you want.

Hopefully that's what you're looking for, have a good one.

Starside

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Way to compare multiple strings?
« Reply #2 on: March 28, 2021, 10:19:59 PM »
Ah perfect! Didn't know that action existed! Thanks