Need Helps With Scripts Compiler Error

ID NOBLE
Tera Expert

Please I need help identifying and correcting possible errors in the following scripts because it's not getting saved:

 

level1 = current.variables.add_guest_details.getLevel('1');

if! level1.place_of_birth.nil() {

var level1name = level1.avi_last_name + ", " + level1.avi_first_name + " " + level1.avi_middle_initial;

var level1organization =  level1.title_job_location;

var level1origin = level1.place_of_birth;

}

 

Thanks.

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @ID NOBLE,

 

Not sure what you are trying to do but you are missing parenthesis in the If statement.

i.e.

if! level1.place_of_birth.nil() {

should be instead

if (!level1.place_of_birth.nil()){

View solution in original post

1 REPLY 1

James Chun
Kilo Patron

Hi @ID NOBLE,

 

Not sure what you are trying to do but you are missing parenthesis in the If statement.

i.e.

if! level1.place_of_birth.nil() {

should be instead

if (!level1.place_of_birth.nil()){