Hi,
I am wondering if there is a way to check whether the value stored in a local variable is a record type instance, so that I can use the a!keys() function to retrieve the list of fields and then index through it. Unfortunately, the code below returns a unique UUID for the record instead of something generic like "Record Type" that I could check against using a simple if condition.
typename( typeof( ABC Comment( id: 1, comment: "test" ) ) )
Also, if anyone knows an even better solution to check not only for record types but for any type that can be accepted by the a!keys function (e.g. record type, map, dictionary etc), that would be great. Thank you!
Discussion posts and replies are publicly visible