Jump to content

Iif Use


condoman
 Share

Recommended Posts

Hi,

This works fine here :lmao:

#include <Misc.au3>

Dim $i_Count, $i_Index

For $i_Index = 1 To 2
   MsgBox(4096, "Count", "This dialog has displayed " & String($i_Index) & _
          " time" & _Iif($i_Index > 1, "s", "") & " so far")
Next

Exit

Did u include misc.au3 ??

Andre

What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Link to comment
Share on other sites

  • Developers

I went to use _Iif(1=1,"t","f") the other day and it is an unknown function.  Is it still valid?

It is in the help file and shown up in SciTE, but not in color.

Thanks

<{POST_SNAPBACK}>

Functions (including UDF's) are not Syntax Highlighted, but get the color for WhiteSpace. They do however show up in AutoComplete and in the Helpfile.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • 3 months later...

@JdeB

OK... so I changed the "fore" and "back" properties of whitespace, yet my UDFs are still not changing color. This is the affected part of my SciTEUser.properties file

whitespace.fore=#ffffff
whitespace.back=#000000

I have changed the background and foreground color for all types of normal text (white=fg, black=bg) to better fit my computer's color scheme, yet changing the whitespace colors as you stated above will not change the coloring of UDFs. Any idea why?

(I know this is off topic, but I have no idea where else to post this)

Link to comment
Share on other sites

  • Developers

@JdeB

OK... so I changed the "fore" and "back" properties of whitespace, yet my UDFs are still not changing color. This is the affected part of my SciTEUser.properties file

whitespace.fore=#ffffff
whitespace.back=#000000

I have changed the background and foreground color for all types of normal text (white=fg, black=bg) to better fit my computer's color scheme, yet changing the whitespace colors as you stated above will not change the coloring of UDFs. Any idea why?

(I know this is off topic, but I have no idea where else to post this)

<{POST_SNAPBACK}>

Works for me ... did you restart SciTE to load the new color settings ?

EDIT: where did you get those lines from??? it should be :

#White space

style.au3.0=fore:#0000FF,bold,back:#800040

Just use SciTEConfig to do it for you .. Ctrl+1

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...