Timeline
06/29/15:
- 17:38 Ticket #3057 (StringSplit() Return Value) created by
- Existing: If no delimiters were found then the @error flag is set to …
- 15:26 Ticket #3055 (_WinAPI_IOCTL: link in See Also is bad) closed by
- Fixed: Fixed by revision [11329] in version: 3.3.13.21
- 00:28 Ticket #3056 (Ctrl_Alt_F5 SyntaxCheck Beta doesn't work in SciTE) created by
- I have downloaded the latest version of SciTE4AutoIt3.exe dated …
06/26/15:
06/22/15:
- 02:18 Ticket #3054 (_Crypt_GenRandom always returns False and sets @error) closed by
- Fixed: Fixed by revision [11327] in version: 3.3.13.21
- 02:16 Ticket #3054 (_Crypt_GenRandom always returns False and sets @error) reopened by
06/20/15:
- 03:59 Ticket #3033 (Small mistake in _Excel_PictureAdd() Help File) closed by
- Fixed: Fixed by revision [11325] in version: 3.3.13.21
- 03:55 Ticket #3054 (_Crypt_GenRandom always returns False and sets @error) closed by
- Fixed: Fixed by revision [11324] in version: 3.3.13.21
06/19/15:
- 07:00 Ticket #3054 (_Crypt_GenRandom always returns False and sets @error) created by
- The function sets $iError = @error + 10 without checking @error. …
06/18/15:
- 17:38 Ticket #3053 (Different file size after Encrypt-Decrypt file) closed by
- Rejected: This is not a bug report and really should be posted in the support forum. Jos
- 14:30 Ticket #3053 (Different file size after Encrypt-Decrypt file) created by
- Hello! At the moment I'm having a problem with integrity of decrypted …
06/17/15:
- 02:02 Ticket #3051 (Enum: typo) closed by
- Fixed: Fixed by revision [11323] in version: 3.3.13.21
- 01:57 Ticket #3050 (_FileWriteFromArray: doc clarification) closed by
- Fixed: Fixed by revision [11322] in version: 3.3.13.21
06/14/15:
- 21:44 Ticket #3052 (_ArraySort doc needs further clarification for 2D) created by
- Existing: Index of array to start sorting (default 0 = first …
- 19:27 Ticket #3051 (Enum: typo) created by
- Existing, in example: ; Multiple each enumeration by 2. I …
- 05:29 Ticket #3050 (_FileWriteFromArray: doc clarification) created by
- Existing: Start array index to read, normally set to 0 or 1. …
- 04:10 Ticket #2589 (Exit has to be put in function in order to use it in short if.) closed by
- Works For Me: The problem isn't in the ternary operator, the problem is that everyone is misunderstanding what is going on when using it. Comment 3 - The results are 100% correct, the problem is that you're expecting ($i = 1) ? ($iTEST = $i) : ($iTEST2 = 4 - $i) to assign the right value to the left variable, that's not what is happening. What's happening is that if $i = 1 then you are COMPARING the right value to the contents of the left variable. The result is a Boolean True or False, there is no assigning of values being done at all. So the consolewrite at the end is always going to show a value of 0 for $iTest and $iTest2 because that is what you set them to at the start of the loop. Comment 4 - This demonstrates exactly what I was referring to in my reply to the code in Comment 3. The last 2 ternary operations are telling you that because 1 doesn't equal 3, use the second expression's answer, which is going to be FALSE because $iTEST3 does not equal 2, you aren't assigning 2 to $iTEST3, you're comparing it to the value in $iTEST3, which is 4. The next one says that because 3 does equal 3, run the first expression, and because $iTEST3 does equal 4, return TRUE. As to the OP, the code works as expected to me. Exit isn't an expression, it's a statement keyword and doesn't work as you're expecting it to in the ternary operator. Sorry, but that is how it works and you're using it wrong. The second example in your original post triggers an error message in AU3Check, but will run as is if you turn off AU3Check before trying to run it. There's nothing wrong in the code, just the syntax checker doesn't understand it. You can bypass the error message by assigning the whole thing to a variable like this. […] I see no bugs here, just misunderstandings and poor code.
06/12/15:
- 19:31 Ticket #3049 (Cross-referencing to assist in finding UDFs in the help) created by
- I am starting this ticket because the topic has changed from Ticket …
06/10/15:
- 13:51 Ticket #3048 (DllStructCreate strange bug) closed by
- No Bug: No bug here: re-read help file under DllStructCreate and look for align directive. […] Next time use GHS forum to ask questions.
- 12:12 Ticket #3048 (DllStructCreate strange bug) created by
- This structure size is 512 Bytes, but when I use DllStructGetSize() to …
- 04:50 Ticket #3047 (_MathCheckDiv: Purpose inaccurate) created by
- Existing: Checks if Num1 is divisable by Num2 Looking at the …
06/09/15:
- 18:48 Ticket #3043 (FOR..IN..NEXT loop completes before processing all Outlook maillitems) closed by
- No Bug: Same is happening with a VBScript so not an AutoIt3 Comm issues
- 05:20 Ticket #3046 (Obj/COM Reference: typos) created by
- Existing: This could be very handy in cases you need to wait for …
- 02:46 Ticket #3044 (Language reference > Variables and Constants) closed by
- Rejected: Constants are variables, they don't need their own heading. Also, the variables section of the help file includes Arrays and Maps and they're not mentioned in your request, and are also a type of variable, so they don't need their own heading either.
- 02:43 Ticket #3045 (String constants: ' and ") closed by
- Rejected: As explained above, this is already referenced in the help file. As this isn't variable related, it wouldn't be something that should be included in the variable reference section.
06/08/15:
- 16:42 Ticket #3045 (String constants: ' and ") created by
- In Language reference > Variables, I do not find the use of ' and " …
- 16:29 Ticket #3044 (Language reference > Variables and Constants) created by
- I suggest that the Variables page be called Variables and COnstants
06/07/15:
- 21:10 Ticket #3043 (FOR..IN..NEXT loop completes before processing all Outlook maillitems) created by
- Tested in v3.3.12.0 and v3.3.13.20 (beta). When iterating Outlook …
- 13:23 Ticket #3029 (_DateDiff() additional help) closed by
- No Bug: The function return a double. the time is not ignored.
- 10:18 Ticket #3039 (AutoiItSetWindowTitle() typo in example 2) closed by
- Fixed: Fixed by revision [11317] in version: 3.3.13.21
- 10:14 Ticket #3041 (AutoitWinGetTitle typos in example) closed by
- Fixed: Fixed by revision [11316] in version: 3.3.13.21
- 09:13 Ticket #3042 (Number(): Remarks needs rework) closed by
- Fixed: Fixed by revision [11314] in version: 3.3.13.21
- 09:00 Ticket #3040 (Int() typos in Remarks) closed by
- Fixed: Fixed by revision [11313] in version: 3.3.13.21
06/05/15:
- 20:39 Ticket #3042 (Number(): Remarks needs rework) created by
- Remarks says: A string beginning with digits has non-numeric …
- 15:53 Ticket #3041 (AutoitWinGetTitle typos in example) created by
- Display AutoIt"s Hidden Window should be Display AutoIt's hidden …
- 15:44 Ticket #3040 (Int() typos in Remarks) created by
- Remarks says: Default behavior is that if the result is within range …
- 06:08 Ticket #3039 (AutoiItSetWindowTitle() typo in example 2) created by
- In Example 2, I see Set the title of of the AutoIt Hidden Window …
06/02/15:
- 10:40 Ticket #3034 (_Timer_SetTimer() doc example) closed by
- Completed: Added by revision [11310] in version: 3.3.13.21
- 08:39 Ticket #3037 (_RunDOS() waits for command completion) closed by
- Fixed: Fixed by revision [11309] in version: 3.3.13.21
- 08:33 Ticket #3038 (_Timer_SetTimer() callback function parameters) closed by
- Fixed: Fixed by revision [11308] in version: 3.3.13.21
05/31/15:
- 16:04 Ticket #3035 (_FileListToArrayRec: new switch for (protected system files)) closed by
- Rejected: OP PMed that he no longer needed this, so I am closing the ticker. M23
- 13:16 Ticket #3038 (_Timer_SetTimer() callback function parameters) created by
- Perhaps add a description of what $iTime is: The number of …
- 10:06 Ticket #3036 (_Timer_SetTimer parameter explanations) closed by
- No Bug: Do you seriously think we have the time to look through the closed tickets every now and again to check if someone has added further comments to them? If you want to make a point - open a new ticket. M23
05/30/15:
- 23:18 Ticket #3037 (_RunDOS() waits for command completion) created by
- I suggest adding the following as a Remark: The script waits until …
Note: See TracTimeline
for information about the timeline view.