July 28, 200322 yr Is there a variation on the IF statement that can be used to check for a match for the last word in a field? LR
July 28, 200322 yr Hi If this is for use in a calculation field, try this, Case( RightWords( YourField, 1 ) = "WordToCheck", "Yes", "No") If it is for use in a script, then, IF["RightWords( YourField, 1 ) = "WordToCheck""] Whatever you want if true... ELSE Whatever you want if false END IF Ed. Sorry Queue, you beat me to it!
July 28, 200322 yr Case(rightwords(YourTestField,1)=YourMatchField, YourDesiredResultIfPositive, YourDesiredResultIfNegative) -Raz ed: Third fastest fingers in the west...
July 28, 200322 yr Author The ones above worked out great. I in fact had a combined calc that this solved all the problems. Case(rightwords(Field,1)=MatchField, ResultPositive, leftwords(Field,1)=MatchField, ResultPositive, ResultNegative) LR
July 28, 200322 yr Or Case( RightWords( Field, 1 ) = MatchField or LeftWords( Field, 1 ) = MatchField, ResultPositive, ResultNegative) for short...
Create an account or sign in to comment