AnsweredAssumed Answered

Is it possible to have more that one expression in a variable see below

Question asked by Raymond on Feb 8, 2015
Latest reply on Feb 9, 2015 by Benjamin Fehr

var1 is a variable; can we have more than one expression contained in a  variable? If so how do we do it?

The purpose is to obtain data from the first of field f11 to f13 to input into Street type then street name.

 

// Street Type

// Let ( {[} var1 = expression1 {; var2 = expression2...]} ; calculation ) } ;

Let ( 

  [

  var1  = "Street";   // "Road"; "Drive"; "Place"; "Avenue"; "Lane"; "Close"; "Grove"; "Court"; "Gardens" ;

  txt1 = FMP Line2 Import::f11 ;

  txt2 = FMP Line2 Import::f12 ;

  txt3 = FMP Line2 Import::f13

]  ;

 

Case (

PatternCount ( txt1 ; var1 ) ; RightWords ( txt1 ; 1) ;

PatternCount ( txt2 ; var1 ) ; RightWords ( txt2 ; 1)

)

)

Outcomes