Can a script call itself?

Hi,

I have a script that runs when a condition is met. I want the script to run check if the condition is still ‘on’ and then run again. It runs once and then stops. I know I can create another script that it calls checks the condition and then calls the original script. I’m just wondering if I can do it within the one script. Below is what I have

flash_entry_light:
  alias: 'Flash entry light'
  sequence:
    - service: light.turn_on
      data:
        entity_id: light.lightbulb_02
        brightness_pct: 100      
    - delay:
        seconds: 1
    - service: light.turn_off
      entity_id: light.lightbulb_02
    - delay:
        seconds: 2    
    - condition: state
      entity_id: script.intruder_alarm
      state: 'on'
    - service: script.turn_on 
      entity_id: script.flash_entry_light

Take a look at this topic:
https://community.home-assistant.io/t/looping-scripts/2875?u=sjee

Cool, thanks