Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleUse an if statement to ignore email domains not equal to "interfaceware.com"

Using if statements, we can filter out data we are not interested in processing. For example, say we only want to process data including the interfaceware domain.

Code Block
languagelua
if domain == 'interfaceware.com' then
  queue.push{data=Data}
else 
  return -- skip processing this message
end 

See How to push messages into a queue?

...