I agree with everything @MechMachineMan says; all too often people will post something like "Help me Obi-wan, you're my only hope" without giving us any idea what effort they have put in themselves.
I've been writing iLogic rules for around a decade now and a lot of the most useful have (in all honesty) been cobbled together from other sources. I'm of the opinion that, barring some pretty niché use-cases, most of the things that can be accomplished with iLogic have already been done in some way.
One tip I do have when searching online (using google etc.) is to be specific: "autodesk inventor ilogic {your query}" or "autodesk inventor API {your query}" are excellent starting points.
It'll help you massively if you create a shortcut to the Inventor API documentation on your desktop. 2019 help is located here:
C:\Users\Public\Documents\Autodesk\Inventor 2019\Local Help\admapi_23_0.chm
Using the api help online is a good idea too - @MechMachineMan has a link to the post I put up a while back (and updated recently for 2019!) that allows you to set up an Inventor API-help search shortcut inside of Google Chrome:
https://forums.autodesk.com/t5/inventor-customization/searching-the-online-api-help-without-having-t...
Here also, is an article I wrote for Design and Motion detailing my top ten tips for iLogic which still (I believe) hold water:
https://designandmotion.net/autodesk/inventor/inventor-top-ten-ilogic-api-tips/
Incidentally, the Commenting section of that article details creating Visual Studio-style summary header comments for methods; this is something I recently discovered you can now do natively inside of the iLogic rule window!
My best advice is to keep plugging away at it, and don't be afraid to ask questions on here (so long as you show your "working out")
🙂
PS. When you do invariably go searching for solutions using my Google suggestion above it helps to put the object or objectcollection that you want help with i.e. DrawingView or AssemblyDocument or DrawingDimension etc. in the {Your query} part.