rounding - if value zero do not show Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jv6642
Posts: 36
Joined: 16 Apr 2019, 02:37

rounding - if value zero do not show

03 Dec 2021, 07:21

I am trying to have ahk export a numeric value thats rounded

Code: Select all

send, % Round(fValue39)
problem is when nothing is inputted by user it shows a value of 0, i just want it blank.
any ideas, if statement maybe?
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: rounding - if value zero do not show  Topic is solved

03 Dec 2021, 07:22

Code: Select all

send, % fValue39 ? Round(fValue39) : ""
https://www.autohotkey.com/docs/Variables.htm#ternary
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Decar, doodles333 and 225 guests