I'm glad to see that we have a programming community among mini ownersIn a cody format
if( cc < 900 ){
car = "under 1 litre"
}
if( cc > 900 AND cc < 1050){
car = "1 litre"
}
if( cc > 1050 AND cc < 1125){
car = "1.1 litre"
}
if( cc > 1125 AND cc < 1260){
car = "1.2 litre"
}
if( cc > 1260 AND cc < 1320){
car = "1.3 litre"
}
need that up to a 3litre really - but under the 2litre would be the most used i imagine
Something like that would work. It doesnt need to be accurate, just a best guess. As if the person enters 1275, it will be converted to 1.3 in the database. If someone entered say 1.25 like 998dave said, then it would be a 1.2 litre .... would this work?
Does that make sense? Apologies for sudocode it seemed easier
if it doesnt have to be accurate then how about this:
if( cc < 950 ){
car = "under 1 litre"
}
if( cc > 950 AND cc < 1049){
car = "1 litre"
}
if( cc > 1050 AND cc < 1149){
car = "1.1 litre"
}
if( cc > 1150 AND cc < 1249){
car = "1.2 litre"
}
if( cc > 1250 AND cc < 1349){
car = "1.3 litre"
}
if( cc > 1350 AND cc < 1449){
car = "1.4 litre"
}
if( cc > 1450 AND cc < 1549){
car = "1.5 litre"
}
if( cc > 1550 AND cc < 1649){
car = "1.6 litre"
}
and just keep going as high as you like.
I still dont understand why you would want to do this though?
GL1

also I'm sure you know this but I thought I'd say it any way... and in programming can be symbolized with || ...
sorry if that's painfully obvious