snaggs Posted January 17, 2012 Posted January 17, 2012 if (Rule("Phone 1 Rule") == "" && Field("Ext1") == "") return ""; if (Rule("Phone 1 Rule") != "" && Field("Ext1") != "") return Resource("phone1 res") +Rule("Phone 1 Rule") + Resource("ext 1 res"); else return Resource("phone1 res") +Rule("Phone 1 Rule"); Line in Red displays rule name instead of resources
Dan Korn Posted January 17, 2012 Posted January 17, 2012 If you're concatenating resources with other strings in the rule's return value, you need to use the content property, like so: return Resource("phone1 res")[color=DarkGreen].content[/color] + Rule("Phone 1 Rule") + Resource("ext 1 res")[color=DarkGreen].content[/color];
Recommended Posts
Archived
This topic is now archived and is closed to further replies.