IFMATCHES

IFMATCHES(<subject>,<pattern>,[&target],[group])

Type: Action

Category: Control Flow

Permission: N/A

Since Minecraft Version: v1.1

Since Version: v0.8.5

Minor: 8

API: N/A

Patch: 5


Description

The actions following this action will only be executed when the <subject> matches the <pattern>.

Optionally the whole match (or only a group specified by [group]) can be saved into [&target].


Useful Links

Related Resources

Changelog
  • Added em v0.8.5:
  • Updated em v0.9: Can now store the match