I want to do something like this (using modularity):
Sub main()
nb1=1
nb2=3
nb1 = weirdNumber(nb1)
nb2 = weirdNumber(nb2)
//nb1 result = 10
//nb1 result = 14
End Sub
Function weirdNumber(nb)
return (nb +4 )* 2
End Function
I didn't find any documentation or exemple on module, function or procedure. If there another way to do script I'll be happy to hear it !