Accesso rapido:  

Forum: VirtualDJ Technical Support

Topic: Multiple repeat sentences
I add my cues and set my variables:

```
goto_start & cue Start & goto_first_beat & cue First_beat &
goto 0 & cue Zero & goto 1 & cue One
set '_oneBeatMS2' 967
set '_oneBeatMS4' 1934
```

According to ( http://www.virtualdj.com/forums/223743/General_Discussion/Script_School.html?page=3.80 ) I want to apply two repeat commands.

First:

```
get_var '_oneBeatMS4' & param_cast 'ms' & repeat_start_instant 'r1' & goto_cue First_beat & cycle 'r1c' 4 & var_equal 'r1c' 0 ?
repeat_stop 'r1'
: nothing
```

Second:
```
get_var '_oneBeatMS2' & param_cast 'ms' & repeat_start_instant 'r2' & goto_cue Start &
cycle 'r2c' 4 & var_equal 'r2c' 0 ?
repeat_stop 'r2'
: nothing
```

Both works as expected allowing to perform repeats by 967ms and 1964ms. So I try to join:

```
get_var '_oneBeatMS4' & param_cast 'ms' & repeat_start_instant 'r1' & goto_cue First_beat & cycle 'r1c' 4 & var_equal 'r1c' 0 ?
repeat_stop 'r1' & (get_var '_oneBeatMS2' & param_cast 'ms' & repeat_start_instant 'r2' & goto_cue Start &
cycle 'r2c' 4 & var_equal 'r2c' 0 ?
repeat_stop 'r2'
: nothing)
: nothing
```

It cycles through `r1c` and `r2c` but unexpectedly, the second parameter passes a wrong value 1964ms instead of `_oneBeatMS2` to the second repeat. What could be an issue here?

I don't know how to debug what parameters values are cast
 

Inviato Mon 15 Jul 24 @ 9:07 am
locoDogPRO InfinityModeratorMember since 2013
 & repeat_start_instant 'r1' `get_var '_oneBeatMS4' & param_cast 'ms'` -1 & ...

& repeat_start_instant 'r2' `get_var '_oneBeatMS2' & param_cast 'ms'` -1 & ...


Start your RSI's like this, casting in the time isn't needed any more and causes an implicit problem.
 

Inviato Mon 15 Jul 24 @ 9:12 am
Thanks, Locodog. It solved my issue.
 

Inviato Mon 15 Jul 24 @ 9:54 am