I highly recommend studying the Savage Worlds Walkthrough in the authoring kit if you're going to be creating a new game system - that's a record of what was done as the skeleton files were turned into the Savage Worlds files, so you can read how a great many things were accomplished there.
http://hlkitwiki.wolflair.com/index....s_Walk-Through
Go to the "Hindrance Support" page there, then to the "Identification for Prereqs" section of that page. That's where they set up the basic mechanism behind their version of #hastrait[].
Once you've got those identity tags added, can you figure out how to test for the presence of a tag?