# Which way is better for trace()?

**URL:** <https://forum.kirupa.com/t/which-way-is-better-for-trace/289225>\
**Category:** Uncategorized\
**Created:** [May 27, 2009, 5:58pm UTC](https://forum.kirupa.com/t/which-way-is-better-for-trace/289225 "2009-05-27T17:58:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadaj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kadaj/32/9061_2.png) [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Post date:** [May 27, 2009, 5:58pm UTC](https://forum.kirupa.com/t/which-way-is-better-for-trace/289225/1 "2009-05-27T17:58:53Z")

</div>

What I mean is :

```auto
var a:int = 10;
var b:int = 20;
var c:int;

//------- METHOD 1 -------//
c = a + b;
trace("Sum", c);

//-------METHOD 2 -------//
c = a + b;
trace("Sum" + c); // Here instead of comma I've used +

```

Using comma or plus sign; which is the most recommended way of using.  
Why does using both is allowed?  
If using ‘,’

I’d straight away do trace(“Sum”, a+b);  
How to do like that using + ?

Please give your ideas on it.  
Thank You
