GeekInterview.com
Series: Subject:
Question: 7 of 155

Switch - case / If Clause

Hi All,

In my Script ... I have a Parameter with name "Role_Group"...
based on the value of that Parameter I want to run the action related to it ...

I need to know how to code it correctly ... cause what I write keeps giving syntax error.

also I would be very thankful if you would tell me how to do this with If Statement.

Thanks,
Jamil
Asked by: Jamil_Jbour | Member Since Jan-2010 | Asked on: Oct 10th, 2010

View all questions by Jamil_Jbour

Showing Answers 1 - 1 of 1 Answers
Swapnil.Narhe

Answered On : Jan 11th, 2011

View all answers by Swapnil.Narhe


if (strcmp(lr_eval_string("{Username}") , "swapnil") == 0 )
 {
    Logoff();
 }

else
 { 
   call to any other actions as you desire.
 }

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.