Custom Function for an article A or An
Featured Replies
You can make the If( left( $term; 1 ) = "e"; "an "; "a " ) into a custom function:
function repl_term( _term )
Case(
Left( _term; 1 ) = "e"; "an ";
Left( _term; 1 ) = "a"; "an ";
Left( _term; 1 ) = "i"; "an ";
Left( _term; 1 ) = "o"; "an ";
Left( _term; 1 ) = "u"; "an ";
"a "
) & _term
And then do Substitute( $text; "<<subst1>>"; repl_term( $term ) )
nice
Recommended by Ocean West
Create an account or sign in to comment