snaggs Posted January 17, 2012 Share 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 Link to comment Share on other sites More sharing options...
Dan Korn Posted January 17, 2012 Share 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]; Link to comment Share on other sites More sharing options...
snaggs Posted January 17, 2012 Author Share Posted January 17, 2012 Thanks Dan Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.