Jump to content

3 statements into 1?


Glyph
 Share

Recommended Posts

$Day = IniRead( @ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here' )
$Month = IniRead( @ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here' )
$Year = IniRead( @ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here' )
$Event = IniRead( @ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here' )

if @MDAY = $day 
if @MDAY = $Day
if @MON = $Month
if @YEAR = $Year then

MsgBox (0,"Calender Event", $Event)

What statement is best to approach this?

tolle indicium

Link to comment
Share on other sites

  • Developers

$Day = IniRead( @ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here' )
$Month = IniRead( @ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here' )
$Year = IniRead( @ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here' )
$Event = IniRead( @ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here' )

if @MDAY = $day 
if @MDAY = $Day
if @MON = $Month
if @YEAR = $Year then

MsgBox (0,"Calender Event", $Event)

What statement is best to approach this?

and ?

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

$Day = IniRead( @ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here' )
$Month = IniRead( @ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here' )
$Year = IniRead( @ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here' )
$Event = IniRead( @ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here' )

if @MDAY = $day 
if @MDAY = $Day
if @MON = $Month
if @YEAR = $Year then

MsgBox (0,"Calender Event", $Event)
oÝ÷ ÙhZ¶ËZµéجmë-¶©¦ºraÏêº^·²¢ëkÊ)à¶h²¶§X¤zØb±«­¢+Ø(ÀÌØíäô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°ÌäíäÌäì°ÌäìÀÌäì°Ìäí5ÍÍ!ÉÌäì¤(ÀÌØí5½¹Ñ ô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°Ìäí5½¹Ñ Ìäì°ÌäìÄÌäì°Ìäí5ÍÍ!ÉÌäì¤(ÀÌØíeÈô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°ÌäíeÈÌäì°ÌäìÈÌäì°Ìäí5ÍÍ!ÉÌäì¤(ÀÌØíÙ¹Ðô%¹¥I MÉ¥ÁѥȵÀìÌäìÀäÈíMÑÑ¥¹Ì¹¥¹¤Ìäì°ÌäíÙ¹ÐÌäì°ÌäìÌÌäì°Ìäí5ÍÍ!ÉÌäì¤()%5dôÀÌØíä¹5=8ôÀÌØí5½¹Ñ ¹eHôÀÌØíeÈÑ¡¸(5Í  ½à À°ÅÕ½Ðí
±¹ÈÙ¹ÐÅÕ½Ðì°ÀÌØíٹФ)¹%(
Edited by Paulie
Link to comment
Share on other sites

Hi,

If @MDAY = IniRead(@ScriptDir & '\Settings.ini', 'Day', '0', 'Message Here') And @MDAY = IniRead(@ScriptDir & '\Settings.ini', 'Month', '1', 'Message Here') _
        And @MON = IniRead(@ScriptDir & '\Settings.ini', 'Year', '2', 'Message Here') And @YEAR = IniRead(@ScriptDir & '\Settings.ini', 'Event', '3', 'Message Here') Then
    MsgBox(0, "Calender Event", $Event)
EndIf

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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...