How to get the status of optimization of Julia Ipopt as an output?

I am running MPC with Julia Ipopt+JuMP in ROS. I want to get the output of the MPC along with the status of optimization. Sometimes the MPC is infeasible, my value gets stuck in the previous output and hence this will help me create a Boolean loop.

this documentation is very good
https://jump.readthedocs.io/en/latest/quickstart.html

status=solve(mdl)

Thanks for the reply. I am trying to do string compare and have numeric outputs for different status like 1 for infeasible but I am getting errors.

tic()
status = solve(mdl)
toc()
ismatch(status,“Infeasible”)
if ismatch(status,“Infeasible”)
status = 1
println(“Veh cannot move”)
end

I am getting the following error:
ERROR: LoadError: MethodError: ismatch has no method matching ismatch(::Symbol, ::ASCIIString)
Closest candidates are:
ismatch(!Matched::Regex, ::AbstractString)
ismatch(!Matched::Regex, ::AbstractString, !Matched::Integer)

Why does the following code fail?

ismatch(:a, "a")

Does

if( status == :Infeasible )

work?

Yes it worked thanks