Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to check if reference field is empty in server script?

Akki1
Tera Contributor

How to check if reference field is empty in server script?

2 REPLIES 2

Sai Kumar B
Mega Sage

@Akki1 

Try the below

 

 

if(JSUtil.notNil(current.getValue('field_name')) //Non-empty

OR

if(current.getValue('field_name')) //Non-empty

 

 

Not applicable