In Scripting, what to put in quotes and what not to put in quotes?

Snehal2
Kilo Guru

Hi Developers,

While scripting, when to use the quotes and when not to use the quotes? Does Single quotes & Double quotes have different meaning? 

Which is right from following?

Eg: current.state=='1'  OR current.state==1

current.u_proposed_as_critical== 'true' OR current.u_proposed_as_critical== true

Thanks in advance,

Snehal

6 REPLIES 6

Hi Snehal,

 

Please mark this as "Correct Answer" if I have given you a sufficient answer to your question. So that this question will be moved to answered state.

If you are viewing this from the Community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.

 

Thanks,
Saikiran Guduri (NOW)
(Please mark the answer as correct answer/helpful if it helps)

RummanM
Tera Contributor

Always remeber sys_id is always in double quotes in the scripting

RummanM_0-1730298947608.png