ASP Javascript "IF" Syntax

This should be a simple one.

I am trying to add an IF statement using ASP/Javascript

<% if (Permissions.SecBillingedit)== "True" { %>


<% } // end Permissions.EOF && Permissions.BOF %>

Where permissions is the recordset and SecBillingedit is the field value
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ASP and JavaScript are separate entities - they cannot talk to each other per se.
ASP is executed on the server, sends the HTML the browser and that is that - ASP is finished with it
Js is used in the browser.
AleksAuthor Commented:
Ok .. ASP .. whats the correct syntax for the above ?
I don't know because I have no idea what you are trying to do
Are you trying to add a js function into the page if the condition is true?
Is this classic ASP or .net?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Robert SchuttSoftware EngineerCommented:
Seems like you need server-side "JScript" which is similar to Javascript and needs parentheses around the entire if expression:
<% if ((Permissions.SecBillingedit)== "True") { %>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
You don't hear much about jscript.  Serverside javascript is starting to come in vogue. Too bad this was never developed more. But it does run slower compared to serverside vbscript for similar functions.  If you can do a function client side, it will run significantly faster.
AleksAuthor Commented:
Thats ok, in the future will be turned to ASP/VBscript.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.