How Do I Use a ACF Custom Field To Add A Slider ID?

This is my code to add the ID for a slider from a ACF number field to a slider function call however it outputs the ID and doesn’t execute the soliloquy function.

I think it might have something to do with the single qoutes.

Not sure how to wrap the slider ID in single qoutes