I've always done it like below... yes that's how much I cannot code. Just wondering if there's a better way
Code: Select all
if A=1
B=463
if A=7
B=464
if A=13
B=465
if A=19
B=466
if A=25
B=467
Code: Select all
if A=1
B=463
if A=7
B=464
if A=13
B=465
if A=19
B=466
if A=25
B=467
Code: Select all
MsgBox "A=1 B=" Convert(1)
MsgBox "A=7 B=" Convert(7)
MsgBox "A=13 B=" Convert(13)
MsgBox "A=19 B=" Convert(19)
MsgBox "A=25 B=" Convert(25)
Convert(num) {
return 463 + (num // 6)
}
Code: Select all
B=463+(%A%//6)
I made it up.is this function from python?
Code: Select all
A := 7
B := 463+(A// 6)