Jump to content

help with returning multiple resources on one line


snaggs

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...