# 10 key bib number next step

**URL:** <https://rossvideo.community/t/10-key-bib-number-next-step/8675>\
**Category:** Automation & Control\
**Created:** [March 17, 2022, 3:42pm UTC](https://rossvideo.community/t/10-key-bib-number-next-step/8675 "2022-03-17T15:42:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![malcolmthorpe](https://rossvideo.community/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@malcolmthorpe](https://rossvideo.community/u/malcolmthorpe)\
**Post date:** [March 17, 2022, 3:42pm UTC](https://rossvideo.community/t/10-key-bib-number-next-step/8675/1 "2022-03-17T15:42:00Z")

</div>

I use a 10 key pad to dial in bib numbers for competitors. For the time being we use %relid% in various groups to call up lower thirds, name bugs, and results tied to a local xlsx database. For example, the lower third biography is group 1000. On a setup tab I have parameters that are manually filled in for the various groups. So, for biographies, the operator will enter 1000 for this example. On the “take” button I have a math block that adds the group parameter to the bib number and puts that scene on air. I don’t even remember where I got the scripting for the 10 key buttons, but it uses strings and I can set a limit to the total number of characters displayed (in my case 3 places because our bibs go up to 150). But to add 1000 to the 10 key parameter I have to use integers. Ok here is the question: I looked for concatenate in the string section of OG blocks thinking I could just add “1000” to the string. Can I do it with a string or should I continue to use integers?  
Here is the script for the “7” on the 10 key. If I use a string this will limit the length to 3 places and works great. Is there a way to duplicate this scripting but using integer, or is there a way to covert string to integer-add the group parameter (1000)-convert back to string? It works fine with integer but I can’t limit the input to 3 places.

var value=params.getValue(‘DATA\_Lead\_Bib’,0);

if (value.length \>= 3)  
value = value.substring(1,2);

value += ‘7’;

params.setValue(‘DATA\_Lead\_Bib’,0,value);

As always, thanks in advance

---

<div class="post-metadata">

**Author:** ![malcolmthorpe](https://rossvideo.community/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@malcolmthorpe](https://rossvideo.community/u/malcolmthorpe)\
**Post date:** [March 17, 2022, 4:24pm UTC](https://rossvideo.community/t/10-key-bib-number-next-step/8675/2 "2022-03-17T16:24:00Z")

</div>

I think I figured this one out. But please feel free to add your solutions. Thanks
