if there's something in the hydrocarbon that has an alkene group (double bond between C=C) and something else? an example that comes to mind is 3-buten-1-ol (CH2=CH-CH2-CH2OH) where the alcohol group (OH) takes priority before the double bond..?
If there's something (i.e. most functional groups) in the molecule that is higher up in priority than alkenes (e.g. alcohol), then the name of the molecule will end "-ol" (for the alcohol) and there will be an "en" somewhere in the rest of the name. So HO–CH2–CH=CH–CH3 would be but-2-en-1-ol because the OH group is on carbon-1 and the alkene double bond starts on carbon-2 (between 2 and 3) – OH takes priority so "ol" is at the end of the name, and "en" goes somewhere else, and then you stick the relevant numbers in so you know what's where.