Trying to create if then else, type construct

I have configured an Automation using a timer-helper, and this works very nicely.
I have now tried to extend the functionality by adding a illuminace sensor.
I have added a condition that is light level is below 100,… timer triggers and light comes on…
And yes this bit works,…
But I am now struggling to figure out how to re-trigger the timer when motion occurs if just the timer is still running.
ie motion + (light level <100 ) start timer
elseif motion + (timer still running ) restart timer…
As the illuminance sensor will be reading the new light level created by switched on light source. and not ignore the illuminance level whilst the timer is still running.
Can anyone help me as I cannot see how to rationalise my logic withing the confinds of extended building block of the graphic UI
Many tx
My Yaml code as follows:-

alias: Hallway with Light Level
description: ""
triggers:
  - type: turned_off
    device_id: d2c0315ec6da6d0d017c3086337821ce
    entity_id: 86f919152a1f4d1b412c3bc0ab9a8279
    domain: binary_sensor
    trigger: device
    id: Motion Stopped
  - type: turned_on
    device_id: d2c0315ec6da6d0d017c3086337821ce
    entity_id: 86f919152a1f4d1b412c3bc0ab9a8279
    domain: binary_sensor
    trigger: device
    id: Motion Detected
  - trigger: event
    event_type: timer.finished
    event_data:
      entity_id: timer.light_timer_2
    id: Timer Finished
conditions:
  - condition: numeric_state
    entity_id: sensor.tas_eighteen_pir_veml7700_illuminance
    below: 100
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Motion Stopped
        sequence:
          - action: timer.start
            metadata: {}
            data: {}
            target:
              entity_id: timer.light_timer_2
      - conditions:
          - condition: trigger
            id:
              - Motion Detected
        sequence:
          - action: timer.cancel
            target:
              entity_id: timer.light_timer_2
            data: {}
          - type: turn_on
            device_id: b89aef7f901b43782ade25433492c9bc
            entity_id: 21bc4f957104bb066acc8d9892164a0a
            domain: light
      - conditions:
          - condition: trigger
            id:
              - Timer Finished
        sequence:
          - type: turn_off
            device_id: b89aef7f901b43782ade25433492c9bc
            entity_id: 21bc4f957104bb066acc8d9892164a0a
            domain: light
mode: single

You are making this far too complicated.

Add your lux condition to this: Motion activated lights automation

Tx for your swift response,… I unfortunately had some home plumbing, leaks and boiler issues,… which meant I was otherwise distracted these last few days.
But having read you link posts,… I can see how I can achieve my goal by using some of the many features of HA,… It just would have been nice to have some simple Logic ( IF THEN ELSE AND OR) type functions within the graphics i/f…
But again Many tx,… to all for their hard work

I don;t use the GUI but I’m pretty sure the if action exists there, along with the others you want. https://www.home-assistant.io/docs/scripts#if-then

Ah,. that’s useful,… more things to play with,…
Many tx for the feedback…