iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Python Scripting Examples > Defining Useful Utility Functions |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
It can be very useful to define reusable utility functions that you might want to invoke from several places in your message definition file. For instance, you might want to create a script for making a cleanly formatted phone number in the format (NNN)NNN-NNNN or NNN-NNNN from a freely formatted phone number field. Here is an example of a function that you would define in the Global Inbound Script:
This function can be invoked from any Python script in the message definition file:
|