Hi,
Do you know how to add a comment in the Formula editor?
I want to comment a line and keep the formula without deleting it.
Thanks a lot!
Petya
Hi,
Do you know how to add a comment in the Formula editor?
I want to comment a line and keep the formula without deleting it.
Thanks a lot!
Petya
You can test following formular:
IF ( model.'Company info'.Name <>"",
"Comment",
model.'Company info'.Name)
model.Company.Name<>"" -> this I want to comment, so that it is not taken into account, but still kept in the field.
false -> this should remain and be taken into account.
thanks a lot!
Petya
Hi Petya,
It is possible.
You can share the formula if you need assistance.
Thanks, Alireza,
I want to keep the formula, but trigger only the "false" statement. Isn't this possible?
Best regards,
Petya
Hi Pety,
You can use false or true instead.
Please try and give us a feedback if you need assist.
It is not what I am looking for. Thanks.
I just want to keep a code presented in a formula, yet not trigger it.
For example: model.Company.Name<>"" - I do not want to delete this, just want to leave it and put "false" instead.
Hi petya,
I think that you can apply the IF function for this requirement. If the text is related to a data in a specific table, you can use the binded to data model, you can use the binded element. For example, I have binded customer group on CustTable to model.'Collection interest journal'.Customer.CustGroup:
IF(
OR(model.'Collection interest journal'.Customer.CustGroup="11",
model.'Collection interest journal'.Customer.CustGroup="12"),
NOT(model.'Collection interest journal'.Customer.AccountNumber=""),
model.'Collection interest journal'.Customer.VATNum<>"")
In the following example, I have created a validation formula that if customer group is 11 or 12 customer account number should not be empty and IF not the tax exempt number should be provided.
For more information about electronic reporting functions please check:
Thank you very much, Alireza,
I want to comment the code, so that it is not taken into account.
Like some of those used in other programing languages:
<!-- text, code, etc. --> or
// text, code, or
/* text, code */, or
the one used in excel: +N("text, code") .
How can I do it in the Formula editor?
André Arnaud de Cal...
293,207
Super User 2025 Season 1
Martin Dráb
231,923
Most Valuable Professional
nmaenpaa
101,156
Moderator