plainblack.com
Username Password
search
Bookmark and Share

GroupTextUp and GroupIdTextUp

GroupTextUp and GroupIdTextUp extend native GroupText macro. The main purpose is to be able displaying one of entered on the list text messages depending on the users's groups. The macro takes key-value pairs as arguments, in which the key is a group name or group ID and the text message. 

Examples:

^GroupTextUp("Admins","I'am admin","Visitors","I'm visitor");
^GroupIdTextUp("3","I'am admin","1","I'm visitor");

You can input many pairs of group and text messages. Each time macro is executed it compares groups from pairs to user's groups. If no group will fit into user's groups macro returns nothing.
You also should remember that macro compares groups from left to the right. So, if user belongs to more than one entered groups, first which fit will be selected.

Comments
DownloadGroupTextUp.pm GroupTextUp.pm
GroupIdTextUp.pm GroupIdTextUp.pm
LinksNo Support Offered
Statistics Downloads: 840
Views: 1855
Rating: 0
Updated: 11/12/2009
Keywords
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved