ibiubu Posted July 28, 2003 Posted July 28, 2003 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
-Queue- Posted July 28, 2003 Posted July 28, 2003 Do you mean something like Case( RightWords( fieldname, 1 ) = "this", ... ) ?
EddyB Posted July 28, 2003 Posted July 28, 2003 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!
Razumovsky Posted July 28, 2003 Posted July 28, 2003 Case(rightwords(YourTestField,1)=YourMatchField, YourDesiredResultIfPositive, YourDesiredResultIfNegative) -Raz ed: Third fastest fingers in the west...
kenneth2k1 Posted July 28, 2003 Posted July 28, 2003 You mean East Of course, you are west relative to Eddy!
EddyB Posted July 28, 2003 Posted July 28, 2003 Think I better get the old Meavis Beacon Teaches Typing Program out!
ibiubu Posted July 28, 2003 Author Posted July 28, 2003 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
-Queue- Posted July 28, 2003 Posted July 28, 2003 Or Case( RightWords( Field, 1 ) = MatchField or LeftWords( Field, 1 ) = MatchField, ResultPositive, ResultNegative) for short...
Recommended Posts
This topic is 8129 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now