Normal Topic If Then Else question (Read 761 times)
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
If Then Else question
Apr 20th, 2005 at 8:54pm
Print Post Print Post  
How would I write an if then else program,
if company name = (starts with the word ABC..)  then
yada yada yada
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: If Then Else question
Reply #1 - Apr 20th, 2005 at 9:31pm
Print Post Print Post  
If @Left(CompanyName,3) = "ABC" Then { ........
------------
or with variables:

Code
Select All
var vCoStart as String

vCoStart="ABC"

If @Left(CompanyName,3) = vCoStart Then {
   yada
   yads
   yada
   } ELSE {
   badabing
   badabing
   badabing
   } 

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: If Then Else question
Reply #2 - Apr 20th, 2005 at 10:30pm
Print Post Print Post  
Thank you Bob, you make it look sooo easy. badabing works great!
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged