This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:modify_variable_action [2013/09/18 21:56] admin created |
en:modify_variable_action [2013/09/19 02:23] (current) |
||
---|---|---|---|
Line 22: | Line 22: | ||
==== Example ==== | ==== Example ==== | ||
+ | Suppose you are using ''NumberPad Value Entered'' rule to scan customer cards through magnetic card reader. Some card scanners sends mag card data between '';'' and ''?'' characters. As you know we can read entered number with ''NumberpadValue'' parameter so before using ''NumberpadValue'' parameter you might want to trim these characters. | ||
- | | + | {{:en:actions:modifyvariable:modifyvariableaction1.jpg?700|}} |
+ | |||
+ | ''[;|%](.*)\?'' regular expression trims starting '';'' or ''%'' char and ending ''?'' character. If we call this action before using NumberpadValue in ''Numberpad Value Entered'' rule we'll read trimmed value. | ||
+ | |||
+ | {{:en:actions:modifyvariable:modifyvariableaction2.jpg?700|}} |