Skip to content

Commit

Permalink
Merge pull request #5 from cvsvensson/istrue
Browse files Browse the repository at this point in the history
remove istrue from if statement
  • Loading branch information
eswagel authored May 11, 2024
2 parents 36f37a3 + a41f000 commit e567886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wcall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function wcall(head::AbstractString, args...; returnJulia=true,kwargs...)
end
wcall(head::AbstractString, args::Vararg{Mtypes}; returnJulia=true, kwargs...) = begin
mathematica_result = weval(MathLink.WSymbol(head)(args...; kwargs...))
if istrue(returnJulia)
if returnJulia
return mathematica_to_expr(mathematica_result)
else
return mathematica_result
Expand Down

0 comments on commit e567886

Please sign in to comment.