What is wrong with this conditional expression? {$IF }[SOLVED] lazarus / 66-Unix ---------------------------------------------------------------------- OH1KH · 2026-04-16 12:22 When looking for example I found this one from this Forum: Quote from: lucamar on March 13, 2019, 02:26:17 amIt's not really the Lazarus version. After all, Lazarus is just an IDE, i.e. an overgrown text-editor. What really matters is the version of the LCL and you can get that with LCL_FULLVERSION. For example: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   {$IF (LCL_FULLVERSION < 1080400)}  ShowMessage('I''ll use workarounds for Lazarus pre-1.8.4');  {$ELSE}  Showmessage('Woah! Congrats! Lazarus is at least 1.8.4.0!')  {$ENDIF} Based on this I made similar: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var{$IF (LCL_FULLVERSION >= 4060000)}   handle : TLCLHandle;{$ELSE}    handle : THandle;   //deprecated on Laz 4.6{$ENDIF}  dmData : TdmData;       When I compile I get errors pointing to this $IF..$ELSE..$ENDIF now added source:                 Compile Project, Target: /home/saku/lazarus/CqrlogAlpha/src/cqrlog: Exit code 1, Errors: 2, Warnings: 1 dData.pas(365,5) Error: Incompatible types: got "AnsiString" expected "Int64" dData.pas(365,5) Error: Compile time expression: Wanted Boolean but got at IF or ELSEIF dData.pas(368,21) Warning: Symbol "THandle" is deprecated: "Use TLCLHandle instead of this redefined THandle" All Googling gives just similar examples. What is the problem that I can not see? ---------------------------------------------------------------------- theo · 2026-04-16 13:23 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses LCLVersion; ---------------------------------------------------------------------- OH1KH · 2026-04-16 14:32 Yes, I am blind ! Added that, but to another unit where I needed it too. Forgot to add it also here. Many thanks !