With this code below, I still get 'B1 (B1) -h' - i.e. the second variable appended when I only want 'B1'
Can someone please tell me where I am going wrong?
Thank you in advance.
Code: Select all
vHO = SUBST( vHeadOffice, 1, 1 );
If ( vHO @= 'B' & (LONG(vHO) = 3 % LONG(vHO) = 2 ));
vHeadOffice_ICEref= vHeadOffice;
else;
vHeadOffice_ICEref= vHeadOffice | ' (' | vHeadOfficeICERef | ') -h';
endif;