Hi,
I'm trying to create a if statement that checks if a specific (table name is known) exists or not. If the table exists it should be appended to a journal. My code is as following:
//assigns the table to a variable.
Data Table( "Ber" ) << Subset( Invisible, (Selected Rows), Output Table Name( "Output" ) );
NC1 = Data Table( "Output" );
......
//Checks if the tables exists
If( try(Data Table ("Output"), TableExist = 0),
NC1 << journal
,
jrn << Append (Text Box ("Alla neg. prover har ett värde under 0.2"));
);
I've also tried with the following:
If( try(NC1, TableExist = 0),
NC1 << journal
,
jrn << Append (Text Box ("Alla neg. prover har ett värde under 0.2"));
);
Results:
Even though the table exists (no erros occurs while running the script) the table is not appended.
If the table does not exsist the text box is appended.
Why does this not work?
Kind regards
Anders