SECONDS

Returns an integer constant indicating the number of seconds in the provided duration

Attribute of the Duration type or duration constant or calculation producing duration

IF SECONDS (Task.Duration) =  5 THEN ...