Hello, I can´t figure how to make this. So, I need some guidance here.
I want to make a bet (Back or Lay) but I want to know the form of the horses.
I know that the silk_form give this information but I want that the horses have at least 3 values (sometimes the horse have 1,2 valeus and sometimes they don´t have any number).
Sometimes appears some letters (P or F) or the symbols (/ -). That means that the horse dindn´t fininsh the race or something else.
And how can I calculate the average on the last 3 values?
1- See if the horses have at least 3 values in their form
2- Calculate the average of the last 3 values
3- If some letters or / appears, substitute for the number 10.
Example:
651126 - average equal - (6+2+1)/3 = 3
66/2222 - average equal - (2+2+2)/3 = 2
P1F411 - average equal - (1+1+4)/3 = 2
8693-6 - average equal - (6+10+3)/3 = 6.33
Is this possible?