Help with Ifttt filter code for time

I have the IFTTT Smartthings Applet running called Get a phone call alert when a door is opened during sleeping hours (10pm to 6am). But I have both a front and back door sensor so I think I need to create a personal copy of this applet for the second sensor.

I know how to create the If and Then parts of the Applet but not sure about the filter.

I assume it starts like this but not sure how to complete it

var currentHour = Meta.currentUserTime.hour()

if (currentHour >= 22 || currentHour < 6 ) {

// Run the applet

} else {

// Skip the action

I think I figured it out, does this look correct to only call me if the door sensor is opened between 11pm and 6am?

var currentHour = Meta.currentUserTime.hour()
if (currentHour >= 23 || currentHour < 6 ) {
} else {