Replies: 2 comments
-
so i remade it a little bit to this:
but this is the output:
I can't for the life of me figure out how to print the string from 'head_resource' (which is what i want to replace) and how to make it so that it will keep doing the function properly and not throw an error |
Beta Was this translation helpful? Give feedback.
-
Is correct for printing out the field. If it returns an empty string then it's empty, that's all there is to it. You haven't attached the dumped implementation but typically if you want to work like this you can do it like so.
Which will retain the original implementation. I'm not sure what you're trying to accomplish by returning If you know a valid value for
Which should apply it every time this function is called. |
Beta Was this translation helpful? Give feedback.
-
hello, im trying to modify fields in an object that is an argument in the given function.
im trying to go by the field of "id" that contains a integer and then replace the other fields which contain the model name as a string and i just cant figure out how to do it properly and i would like to ask for some help if possible 🙏🙏🙏 i just cant figure out how to turn the "id" field into an integer to compare and how to switch the strings properly
Beta Was this translation helpful? Give feedback.
All reactions