Add 30 minutes and then round down to the nearest hour
Instead of
trimToMinutes([%CurrentDateTime%]) > 30
try
parseInteger(formatDateTime([%CurrentDateTime%], 'mm')) > 30.
trimToMinutes will return a datetime, not an integer.