https://docs.marketo.com/display/public/DOCS/Create+an+Email+Script+Token
Sanford in action here: https://events.bizzabo.com/adobeskillexchange/agenda/session/491289
And here's a simple script example from our instance:
## if empty or US, display Boston #if( $lead.Temp_Country__c.isEmpty() || $lead.Temp_Country__c.equals("us") ) LogMeIn USA, 333 Summer Street, Boston, MA 02210 #elseif( $lead.Temp_Country__c.equals("BR") ) LogMeIn Consultoria e Serviços de Informática Ltda., Rua Joaquim Floriano, No. 243, suite 113, Itaim Bibi, 04543-010 São Paulo-SP, Brazil #elseif( $lead.Temp_Country__c.equals("GB") ) LogMeIn Technologies UK Limited, Ramillies Buildings, 1-9 Hills Place, Westminster, London W1F 7SA United Kingdom #elseif( $lead.Temp_Country__c.equals("AU") ) LogMeIn AUS Pty Ltd., 20 Martin Place, Levels 19 & 20, Sydney, NSW 2000, Australia ## all other countries, display Ireland #else LogMeIn Ireland Limited, Bloodstone Building Block C, 70 Sir John Rogerson’s Quay, Dublin 2, Ireland #end
In our case it's a Temp Country field that dictates the various text block insertions. In your case that would be your Industry field. What the token outputs can be just a single line of text - as in this example - but also huge blocks of HTML. Depends on your email setup.
Hope this helps. You'll find code snippets of Velocity all over this board. Mostly from Sanford. 🙂
... View more