0xffff0000 P " \
If( \
And ( \
GreaterOrEqual( GetHour( GetCurrentTime() ), \
{ U 8 } ), \
LessOrEqual( GetHour( GetCurrentTime() ), \
{ U 17 } ) ), \
CreateEvent( { C CURRENT_MODEL }, \
{ H 0xffff0001 } ), \
CreateEvent( { C CURRENT_MODEL }, \
{ H 0xfffff0002 } )"
In the above example, no additional varbinds are in these events. You would have to use CreateEventWithAttributes() if you want some varbinds as well, and supply a third parameter (e.g. GetEventAttributeList() to get a copy of the current event?s varbind values.