- or + until the maximum of

- or + until the maximum of

hello
does anyone knows how to script

x = input.1 - input.2 ( input.2 can't be more than 10)


many thanks