Modeller.localCompare


localCompare(searchBstr, resVar)

For comparing a string with string a containing local place holders, this function takes a string usually created by localFormat and compares to a format string usually used by with localFormat

searchBstrstringstring to compare
resVarstring format string to compare with
Return valuebooleantrue if the strings match

Example

compareing the string "I have 10% of the red apples" with "I have %1%% of the %2 %3" would return true

Back to Modeller

Back to Overview