Row Rendered Event Check for values

ASP.NET MAKER 2020.0.5

Row Rendered Event

How can i check a value for NULL (ths will not work)
if (SameInteger(mydata.CurrentValue, IsNull ) {

or for date older then 14 days (this will not work)
if (SameInteger(mydata.CurrentValue, < now()-14 ) {

I know, this are newbie questions. Is there book for syntax to read ?
Thanks for help

Try:

if (Field.CurrentValue == null || IsDBNull(Field.CurrentValue)) {
//…
}

How does a query of a date field older then 14 days for a Row Rendered Event look like ?

if (SameInteger(mydata.CurrentValue, < now()-14 ) {
//…
}

Something like:

(DateTime.Parse(Field.CurrentValue) - DateTime.Today).Days < 14

You can also google for C# calculate date difference for more examples.

But this will not work for me, Conversion Error … “object” in “System.ReadOnlySpan” …

if ((DateTime.Parse(mydate.CurrentValue) - DateTime.Today).Days < 14) {
//…
}

What have i todo ?

What value does your field contain? Try Convert.ToString(…) first for the field.