x = IFF(abc > xyz, Read_The_First_10000_Records_And_Find_X(databaseName), Read_The_Last_10000_Records_And_Find_X(databaseName))
' Result A:
' [abc] is evaluated against [xyz]
' -> The result is passed as an argument to the IFF() method
' The first ten thousand records are analyzed in search of X
' -> The result is passed as an argument to the IFF() method
' The last ten thousand records are analyzed in search of X
' -> The result is passed as an argument to the IFF() method
' In the IFF() method:
' The first argument is TRUE:
' -> Return the second argument
' -> THE END
' Result B:
' [abc] is evaluated against [xyz]
' -> The result is passed as an argument to the IFF() method
' The first ten thousand records are analyzed in search of X
' -> The result is passed as an argument to the IFF() method
' The last ten thousand records are analyzed in search of X
' -> The result is passed as an argument to the IFF() method
' In the IFF() method:
' The first argument is FALSE:
' -> Return the third argument
' -> THE END
' Record search cost: Between 10,001 and 20,000 iterations.