PDF report using with IF code

i have 2 company names. i want to make a button for pdf report.
i need if i choice first company name in select menu pdf report must write first company name in title area.
if i choice second company name in select menu, pdf report must write second company name.

Is this possible.
Thanks

Depending your database model, you must have a global variable ID for your company. so the statment SQL in your report must use WHERE Company_id = [g_company_id]

Thank you, i will try