Return NULL when CurrentTable()->TableName is empty

Post Reply
bui
User
Posts: 277

Return NULL when CurrentTable()->TableName is empty

Post by bui »

On the Server Script -> Global -> All Page -> Page Loading
I Try to get the TableName
if(CurrentTable()->TableName == "xxxxx"){
------
----
---
}

On the the Custom File it got an error for CurrentTable()->TableName as it is not a table

So I request to kindly return NULL / FALSE on the Custom File or the Custom File Name

Webmaster
User
Posts: 9427

Post by Webmaster »

You can use:

@CurrentTable()->TableName

In v2021, you can also use:

CurrentTableName()

Post Reply