# Can i abbreviate this expression to fit on one line?

**URL:** <https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704>\
**Category:** Ruby\
**Created:** [June 1, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704 "2007-06-01T16:17:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [June 1, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704/1 "2007-06-01T16:17:12Z")

</div>

Hey there,

i am wondering if there is a way i can fit this on one line

if x \> 23: next  
end

thanks

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [June 1, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704/2 "2007-06-01T16:26:16Z")

</div>

On 6/1/07, shawn bright [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i am wondering if there is a way i can fit this on one line
> 
> if x \> 23: next  
> end

next if x \> 23

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [June 1, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704/3 "2007-06-01T16:28:17Z")

</div>

On 6/1/07, shawn bright [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hey there,
> 
> i am wondering if there is a way i can fit this on one line
> 
> if x \> 23: next  
> end
> 
> thanks

either: (the : delimiter is deprecated)

if x \> 23 ; next ; end

or:

next if x \> 23

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [June 1, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704/4 "2007-06-01T16:43:22Z")

</div>

cool, thanks  
shawn

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [June 1, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/can-i-abbreviate-this-expression-to-fit-on-one-line/105704/5 "2007-06-01T16:58:24Z")

</div>

Even closer to the OP’s original syntax is:

if x \> 23 then next end

Dave
