3

Coming from other developing language I miss a more simple way to check if some types of variables have a value or not.


Right now we can use if / if not


I would suggest the following:


if / if not instead of (if <> '') / (if

if / if not instead of (if <> 0) / (if = 0)

if instead of (if <> 0D/0DT) / (if = 0D/0DT)


and so on - I guess you get my idea.


I believe we can shorten and make more readable compound if-statements this way

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team

Comments

A

Don't know what happened with my text so here it is:if string/code / if not string/code instead of (if string/code '') / (if string/code = '')if decimal/integer / if not decimal/integer instead of (if decimal/integer 0) / (if decimal/integer = 0)if date/datetime / if not date/datetime instead of (if date/datetime 0D/0DT) / (if date/datetime = 0D/0DT)

Category: Development