You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@x87 , Any conditional opcodes with a comment between ifnot produces compilation error:
{$CLEO}
{$USE ini}
if {8AA2:} not 0@ = load_dynamic_library {fileName} "cleo/test.dll" // <<<< causes compilation error
then print_string_now "load test.dll failed" 10000
end
wait 1000
if {8AF0:} not 0@ = read_int_from_ini_file {path} "cleo/test.ini" {section} "thissection" {key} "thiskey" // <<<< causes compilation error
then print_string_now "read test.ini failed" 10000
end
{0A93:} terminate_this_custom_script
This Works though:
{$CLEO}
{$USE ini}
if not {8AA2:} 0@ = load_dynamic_library {fileName} "cleo/test.dll" // <<<< it works
then print_string_now "load test.dll failed" 10000
end
wait 1000
if not {8AF0:} 0@ = read_int_from_ini_file {path} "cleo/test.ini" {section} "thissection" {key} "thiskey" // <<<< it works
then print_string_now "read test.ini failed" 10000
end
{0A93:} terminate_this_custom_script
{$CLEO}
{$USE ini}
if or
not {8AA2:} 0@ = load_dynamic_library {fileName} "cleo/test.dll" // <<<< it works
not {8AF0:} 0@ = read_int_from_ini_file {path} "cleo/test.ini" {section} "thissection" {key} "thiskey" // <<<< it works
then print_string_now "something went wrong" 10000
end
{0A93:} terminate_this_custom_script
I think this is a bug, because this also works as well:
{$CLEO}
{$USE ini}
if or
{8AA2:} not 0@ = load_dynamic_library {fileName} "cleo/test.dll" // <<<< it works
{8AF0:} not 0@ = read_int_from_ini_file {path} "cleo/test.ini" {section} "thissection" {key} "thiskey" // <<<< it works
then print_string_now "something went wrong" 10000
end
{0A93:} terminate_this_custom_script
Activity
x87 commentedon Mar 16, 2025
Fixed in 4.1